summaryrefslogtreecommitdiffstats
path: root/clang/test/Modules/submodules-preprocess.cpp
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2012-03-01 22:07:04 +0000
committerTed Kremenek <kremenek@apple.com>2012-03-01 22:07:04 +0000
commitc1e4dd0e8e6ec8b638bc87ee6dd55f114a4d0e2f (patch)
tree3ef4165164d5e48da3a9dee129d627e6e44f1889 /clang/test/Modules/submodules-preprocess.cpp
parent8dc53af5dcbbcbb00faf3ed3cc3e62c982007144 (diff)
downloadbcm5719-llvm-c1e4dd0e8e6ec8b638bc87ee6dd55f114a4d0e2f.tar.gz
bcm5719-llvm-c1e4dd0e8e6ec8b638bc87ee6dd55f114a4d0e2f.zip
Change @import to @__experimental_modules_import. We are not ready to commit to a particular syntax for modules,
and don't have time to push it forward in the near future. llvm-svn: 151841
Diffstat (limited to 'clang/test/Modules/submodules-preprocess.cpp')
-rw-r--r--clang/test/Modules/submodules-preprocess.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/clang/test/Modules/submodules-preprocess.cpp b/clang/test/Modules/submodules-preprocess.cpp
index 7d218b13593..8d6c2cd70d8 100644
--- a/clang/test/Modules/submodules-preprocess.cpp
+++ b/clang/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.
-@import std.vector;
+@__experimental_modules_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
-@import std.typetraits; // expected-error{{no submodule named 'typetraits' in module 'std'; did you mean 'type_traits'?}}
+@__experimental_modules_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
-@import std.vector.compare; // expected-error{{no submodule named 'compare' in module 'std.vector'}}
+@__experimental_modules_import std.vector.compare; // expected-error{{no submodule named 'compare' in module 'std.vector'}}
-@import std; // import everything in 'std'
+@__experimental_modules_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
-@import std.hash_map;
+@__experimental_modules_import std.hash_map;
#ifndef HAVE_VECTOR
# error HAVE_VECTOR macro is not available (but should be)
OpenPOWER on IntegriCloud