aboutsummaryrefslogtreecommitdiff
path: root/test/Modules/import-decl.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2012-05-16 16:31:58 +0000
committerDouglas Gregor <dgregor@apple.com>2012-05-16 16:31:58 +0000
commitd0792de17387e949c27f97a5fa4a0b3e82db9b1e (patch)
treef76c1f881800fa41a7f0ff1dbe9a58c78fe3c3e4 /test/Modules/import-decl.cpp
parent50de5e3247a20e0e548dc47022a011250e6e4e8f (diff)
Fix ASTReader handling of ImportDecls, from Meador Inge!
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@156923 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Modules/import-decl.cpp')
-rw-r--r--test/Modules/import-decl.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/Modules/import-decl.cpp b/test/Modules/import-decl.cpp
new file mode 100644
index 0000000000..76966934ac
--- /dev/null
+++ b/test/Modules/import-decl.cpp
@@ -0,0 +1,10 @@
+// RUN: rm -rf %t
+// RUN: %clang -fmodule-cache-path %t -fmodules -x objective-c -I %S/Inputs -emit-ast -o %t.ast %s
+// RUN: %clang -cc1 -ast-print -x ast - < %t.ast | FileCheck %s
+
+@__experimental_modules_import import_decl;
+// CHECK: struct T
+
+int main() {
+ return 0;
+}