diff options
author | Douglas Gregor <dgregor@apple.com> | 2012-12-11 22:11:52 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2012-12-11 22:11:52 +0000 |
commit | 1b257afbae854c6817f26b7d61c4fed8ff7aebad (patch) | |
tree | b55dde41e149b05234a21023307864c49b380144 /test/Modules/submodules-preprocess.cpp | |
parent | bd5da3ca593fbf354fd19c2894eee50694c96788 (diff) |
Use @import rather than @__experimental_modules_import, since the
latter is rather a mess to type.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@169919 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Modules/submodules-preprocess.cpp')
-rw-r--r-- | test/Modules/submodules-preprocess.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/Modules/submodules-preprocess.cpp b/test/Modules/submodules-preprocess.cpp index 8d6c2cd70d..7d218b1359 100644 --- a/test/Modules/submodules-preprocess.cpp +++ b/test/Modules/submodules-preprocess.cpp @@ -2,7 +2,7 @@ // RUN: %clang_cc1 -fmodules -x objective-c++ -Eonly -fmodule-cache-path %t -I %S/Inputs/submodules %s -verify // FIXME: When we have a syntax for modules in C++, use that. -@__experimental_modules_import std.vector; +@import std.vector; #ifndef HAVE_VECTOR # error HAVE_VECTOR macro is not available (but should be) @@ -16,7 +16,7 @@ # error HAVE_HASH_MAP macro is available (but shouldn't be) #endif -@__experimental_modules_import std.typetraits; // expected-error{{no submodule named 'typetraits' in module 'std'; did you mean 'type_traits'?}} +@import std.typetraits; // expected-error{{no submodule named 'typetraits' in module 'std'; did you mean 'type_traits'?}} #ifndef HAVE_VECTOR # error HAVE_VECTOR macro is not available (but should be) @@ -30,9 +30,9 @@ # error HAVE_HASH_MAP macro is available (but shouldn't be) #endif -@__experimental_modules_import std.vector.compare; // expected-error{{no submodule named 'compare' in module 'std.vector'}} +@import std.vector.compare; // expected-error{{no submodule named 'compare' in module 'std.vector'}} -@__experimental_modules_import std; // import everything in 'std' +@import std; // import everything in 'std' #ifndef HAVE_VECTOR # error HAVE_VECTOR macro is not available (but should be) @@ -46,7 +46,7 @@ # error HAVE_HASH_MAP macro is available (but shouldn't be) #endif -@__experimental_modules_import std.hash_map; +@import std.hash_map; #ifndef HAVE_VECTOR # error HAVE_VECTOR macro is not available (but should be) |