Make sure no diags are emitted.

This commit is contained in:
Vassil Vassilev 2014-08-11 09:46:23 +02:00 committed by sftnight
parent 282ce06530
commit f14fbd2b78

View File

@ -6,9 +6,13 @@
// LICENSE.TXT for details.
//------------------------------------------------------------------------------
// RUN: %cling %s "args(42)" | FileCheck %s
// RUN: %cling %s "args(42)" -Xclang -verify 2>&1 | FileCheck %s
//CHECK-NOT: {{.*error|warning|note:.*}}
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