llvm-project/clang/test/Parser/check-objc2-syntax-1.m
Argyrios Kyrtzidis ec328b8e6f [Parser] Remove "add -fmodules" from the "use of '@import' when modules are disabled, add -fmodules" error.
We disable modules for C++, at which point this is confusing.
rdar://16641918

llvm-svn: 206440
2014-04-17 02:32:52 +00:00

14 lines
249 B
Objective-C

// RUN: %clang_cc1 -fsyntax-only -verify %s
// rdar://15505492
@import Foundation; // expected-error {{use of '@import' when modules are disabled}}
@interface Subclass
+ (int)magicNumber;
@end
int main (void) {
return Subclass.magicNumber;
}