We cannot pass in a 'proper' source location, thus we cannot use -verify.
This commit is contained in:
parent
9961b6c312
commit
afaf997555
@ -6,13 +6,12 @@
|
||||
// LICENSE.TXT for details.
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
// RUN: %cling %s "args(42)" -Xclang -verify 2>&1 | FileCheck %s
|
||||
|
||||
//CHECK-NOT: {{.*error|warning|note:.*}}
|
||||
// RUN: %cling %s "args(42)" 2>&1 | FileCheck %s
|
||||
|
||||
//CHECK-NOT: {{.*error|note:.*}}
|
||||
//CHECK: warning: function 'args' cannot be called with no arguments.
|
||||
extern "C" int printf(const char* fmt, ...);
|
||||
void args(int I, const char* S = "ArgString") {
|
||||
printf("I=%d\n", I); // CHECK: I=42
|
||||
printf("S=%s\n", S); // CHECK: S=ArgString
|
||||
}
|
||||
// expected-no-diagnostics
|
||||
|
Loading…
x
Reference in New Issue
Block a user