Skip to content

Commit 8110eb4

Browse files
committed
[cling] Use -verify instead of FileCheck for StillError test
1 parent c0c385b commit 8110eb4

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

interpreter/cling/test/Extensions/Lookup/StillError.C

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
// LICENSE.TXT for details.
77
//------------------------------------------------------------------------------
88

9-
// RUN: cat %s | %cling -I%p 2>&1 | FileCheck %s
9+
// RUN: cat %s | %cling -I%p -Xclang -verify 2>&1
1010

1111
// Test failures of dynamic lookups.
1212

@@ -27,11 +27,10 @@
2727
std::unique_ptr<cling::test::SymbolResolverCallback> SRC;
2828
SRC.reset(new cling::test::SymbolResolverCallback(gCling, false))
2929
gCling->setCallbacks(std::move(SRC));
30-
p.q // CHECK: {{input_line_.*: error: use of undeclared identifier 'p'}}
30+
p.q
31+
// expected-error@input_line_28:2 {{use of undeclared identifier 'p'}}
3132

3233
// `auto` is not supported
3334
auto x = unknownexpression()
34-
// CHECK: error: cannot deduce 'auto' from unknown expression
35-
// CHECK-NEXT: auto x = unknownexpression
36-
// CHECK-NEXT: ^
35+
// expected-error@input_line_31:2 {{cannot deduce 'auto' from unknown expression}}
3736
.q

0 commit comments

Comments
 (0)