diff options
Diffstat (limited to 'test/Sema/builtins.c')
-rw-r--r-- | test/Sema/builtins.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/test/Sema/builtins.c b/test/Sema/builtins.c index 997a8ede0e..59a339ad45 100644 --- a/test/Sema/builtins.c +++ b/test/Sema/builtins.c @@ -1,4 +1,4 @@ -// RUN: clang %s -fsyntax-only -verify +// RUN: clang %s -fsyntax-only -verify -pedantic int test1(float a, int b) { return __builtin_isless(a, b); @@ -26,8 +26,7 @@ int test6(float a, long double b) { void cfstring() { CFSTR("\242"); // expected-warning {{ CFString literal contains non-ASCII character }} CFSTR("\0"); // expected-warning {{ CFString literal contains NUL character }} - CFSTR(242); // expected-error {{ CFString literal is not a string constant }} \ - expected-warning {{incompatible types}} + CFSTR(242); // expected-error {{ CFString literal is not a string constant }} expected-warning {{incompatible pointer/int conversion}} CFSTR("foo", "bar"); // expected-error {{ error: too many arguments to function }} } |