We cannot pass in a 'proper' source location, thus we cannot use -verify.

This commit is contained in:
Vassil Vassilev 2014-08-11 13:09:54 +02:00 committed by sftnight
parent 9961b6c312
commit afaf997555

View File

@ -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