66// LICENSE.TXT for details.
77//------------------------------------------------------------------------------
88
9- // RUN: %cling -C -E -P %s | %cling -nostdinc++ -Xclang -verify 2>&1 | FileCheck %s
10- // RUN: %cling -C -E -P -DCLING_VALEXTRACT_ERR %s | %cling -nostdinc++ -nobuiltininc -Xclang -verify 2>&1 | FileCheck %s
11- // RUN: %cling -C -E -P -DCLING_VALEXTRACT_ERR2 %s | %cling -nostdinc++ -nobuiltininc -Xclang -verify 2>&1 | FileCheck %s
12- // RUN: %cling -C -E -P -DCLING_VALEXTRACT_ERR3 %s | %cling -nostdinc++ -nobuiltininc -Xclang -verify 2>&1 | FileCheck %s
13- // RUN: %cling -C -E -P -DCLING_VALEXTRACT_ERR4 %s | %cling -nostdinc++ -nobuiltininc -Xclang -verify 2>&1 | FileCheck %s
9+ // RUN: %cling -C -E -P %s > %t
10+ // RUN: cat %t | %cling -nostdinc++ -Xclang -verify 2>&1 | FileCheck %t
1411
12+ // RUN: %cling -C -E -P -DCLING_VALEXTRACT_ERR %s > %t
13+ // RUN: cat %t | %cling -nostdinc++ -nobuiltininc -Xclang -verify 2>&1 | FileCheck %t
14+
15+ // RUN: %cling -C -E -P -DCLING_VALEXTRACT_ERR2 %s > %t
16+ // RUN: cat %t | %cling -nostdinc++ -nobuiltininc -Xclang -verify 2>&1 | FileCheck %t
17+
18+ // RUN: %cling -C -E -P -DCLING_VALEXTRACT_ERR3 %s > %t
19+ // RUN: cat %t | %cling -nostdinc++ -nobuiltininc -Xclang -verify 2>&1 | FileCheck %t
20+
21+ // RUN: %cling -C -E -P -DCLING_VALEXTRACT_ERR4 %s > %t
22+ // RUN: cat %t | %cling -nostdinc++ -nobuiltininc -Xclang -verify 2>&1 | FileCheck %t
23+
24+ // RUN: %cling -C -E -P -DCLING_RTIME_PRNT_ERR %s > %t
25+ // RUN: cat %t | %cling -I%S/ABI -Xclang -verify 2>&1 | FileCheck %t
26+
27+ #ifndef CLING_RTIME_PRNT_ERR
1528// expected-error@input_line_1:1 {{'new' file not found}}
1629
1730// CHECK: Warning in cling::IncrementalParser::CheckABICompatibility():
1831// CHECK-NEXT: Possible C++ standard library mismatch, compiled with {{.*$}}
19-
32+ #endif
2033
2134#if defined(CLING_VALEXTRACT_ERR ) || defined(CLING_VALEXTRACT_ERR2 ) || \
22- defined(CLING_VALEXTRACT_ERR3 ) || defined(CLING_VALEXTRACT_ERR4 )
35+ defined(CLING_VALEXTRACT_ERR3 ) || defined(CLING_VALEXTRACT_ERR4 ) || \
36+ defined(CLING_RTIME_PRNT_ERR )
2337
2438struct Trigger {} Tr ;
2539
@@ -46,4 +60,9 @@ Tr // expected-error@2 {{ValueExtractionSynthesizer could not find: 'cling::runt
4660
4761#endif
4862
63+ #ifdef CLING_RTIME_PRNT_ERR
64+ Tr // expected-error@cling/Interpreter/RuntimePrintValue.h:2 {{C++ requires a type specifier for all declarations}} expected-error@2 {{RuntimePrintValue.h could not be loaded}}
65+ // CHECK: (struct Trigger &) <<<undefined>>>
66+ #endif
67+
4968.q
0 commit comments