looking only for { and } instead of {{ and }}. Changed it to check for
this explicitly.
llvm-svn: 44326
11 lines
487 B
C
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 }}
|
|
}
|