llvm-capstone/clang/test/Parser/check-objc2-syntax-1.m
Fariborz Jahanian b31a2f2a47 Patch to prevent crash on use of objc2 syntax.
llvm-svn: 44617
2007-12-05 18:16:33 +00:00

11 lines
219 B
Objective-C

// RUN: clang -fsyntax-only -verify %s
@interface Subclass
+ (int)magicNumber;
@end
int main (void) {
return Subclass.magicNumber; // expected-error {{unexpected interface name 'Subclass': expected expression}}
}