2009-12-16 04:14:24 +08:00
|
|
|
// RUN: %clang_cc1 %s -verify -fsyntax-only
|
|
|
|
// RUN: %clang_cc1 %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
|
|
|
|