[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
This commit is contained in:
parent
06770f9381
commit
ec328b8e6f
|
@ -225,7 +225,7 @@ def err_expected_property_name : Error<"expected property name">;
|
|||
|
||||
def err_unexpected_at : Error<"unexpected '@' in program">;
|
||||
def err_atimport : Error<
|
||||
"use of '@import' when modules are disabled, add -fmodules">;
|
||||
"use of '@import' when modules are disabled">;
|
||||
|
||||
def err_invalid_reference_qualifier_application : Error<
|
||||
"'%0' qualifier may not be applied to a reference">;
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// RUN: %clang_cc1 -fsyntax-only -verify %s
|
||||
|
||||
// rdar://15505492
|
||||
@import Foundation; // expected-error {{use of '@import' when modules are disabled, add -fmodules}}
|
||||
@import Foundation; // expected-error {{use of '@import' when modules are disabled}}
|
||||
|
||||
@interface Subclass
|
||||
+ (int)magicNumber;
|
||||
|
|
Loading…
Reference in New Issue