2009-03-24 10:24:46 +08:00
|
|
|
// RUN: clang-cc %s -verify -fsyntax-only &&
|
|
|
|
// RUN: clang-cc %s -verify -fsyntax-only -DDECLAREIT
|
2007-12-12 09:04:12 +08:00
|
|
|
|
2008-06-22 04:20:39 +08:00
|
|
|
// a declaration of NSConstantString is not required.
|
|
|
|
#ifdef DECLAREIT
|
2007-12-12 09:04:12 +08:00
|
|
|
@interface NSConstantString;
|
|
|
|
@end
|
2008-06-22 04:20:39 +08:00
|
|
|
#endif
|
2007-12-12 09:04:12 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
2008-06-22 04:20:39 +08:00
|
|
|
id s = @"123"; // simple
|
|
|
|
id t = @"123" @"456"; // concat
|
2008-11-24 09:28:17 +08:00
|
|
|
id u = @"123" @ blah; // expected-error {{unexpected token}}
|
2007-12-12 09:04:12 +08:00
|
|
|
|