diff options
Diffstat (limited to 'clang/test/Parser/check-objc2-syntax-1.m')
-rw-r--r-- | clang/test/Parser/check-objc2-syntax-1.m | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/clang/test/Parser/check-objc2-syntax-1.m b/clang/test/Parser/check-objc2-syntax-1.m new file mode 100644 index 0000000..3cdf2b0 --- /dev/null +++ b/clang/test/Parser/check-objc2-syntax-1.m @@ -0,0 +1,10 @@ +// RUN: %clang_cc1 -fsyntax-only -verify %s + +@interface Subclass ++ (int)magicNumber; +@end + +int main (void) { + return Subclass.magicNumber; +} + |