xref: /minix3/external/bsd/llvm/dist/clang/test/Parser/check-objc2-syntax-1.m (revision 0a6a1f1d05b60e214de2f05a7310ddd1f0e590e7)
1f4a2713aSLionel Sambuc// RUN: %clang_cc1 -fsyntax-only -verify %s
2*0a6a1f1dSLionel Sambuc
3*0a6a1f1dSLionel Sambuc// rdar://15505492
4*0a6a1f1dSLionel Sambuc@import Foundation; // expected-error {{use of '@import' when modules are disabled}}
5f4a2713aSLionel Sambuc
6f4a2713aSLionel Sambuc@interface Subclass
7f4a2713aSLionel Sambuc+ (int)magicNumber;
8f4a2713aSLionel Sambuc@end
9f4a2713aSLionel Sambuc
10f4a2713aSLionel Sambucint main (void) {
11f4a2713aSLionel Sambuc  return Subclass.magicNumber;
12f4a2713aSLionel Sambuc}
13f4a2713aSLionel Sambuc
14