Files
clang-p2996/clang/test/Sema/cfstring.c
Bill Wendling 8da1db4f34 The checking for the delimiters of expected error/warning messages was
looking only for { and } instead of {{ and }}. Changed it to check for
this explicitly.

llvm-svn: 44326
2007-11-26 08:26:20 +00:00

11 lines
487 B
C

#define CFSTR __builtin___CFStringMakeConstantString
// RUN: clang %s -fsyntax-only -verify
void f() {
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("foo", "bar"); // expected-error {{ error: too many arguments to function }}
}