mirror of
https://github.com/llvm/llvm-project.git
synced 2025-05-10 01:46:07 +00:00

We disable modules for C++, at which point this is confusing. rdar://16641918 llvm-svn: 206440
14 lines
249 B
Objective-C
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;
|
|
}
|
|
|