summaryrefslogtreecommitdiffstats
path: root/clang/test/ASTMerge/var.c
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2010-02-09 19:21:46 +0000
committerDouglas Gregor <dgregor@apple.com>2010-02-09 19:21:46 +0000
commit62d311fdf435365b85db4af13e7d93a22673bf81 (patch)
tree2de6d5d15fec94d9d3f48e6165cdcaf8eb40b11b /clang/test/ASTMerge/var.c
parent499b4e3387302c99a7923e0204ddbedb336e506f (diff)
downloadbcm5719-llvm-62d311fdf435365b85db4af13e7d93a22673bf81.tar.gz
bcm5719-llvm-62d311fdf435365b85db4af13e7d93a22673bf81.zip
Introduce a testbed for merging multiple ASTs into a single AST
context with the AST importer. WIP, still useless but at least it has a test. llvm-svn: 95683
Diffstat (limited to 'clang/test/ASTMerge/var.c')
-rw-r--r--clang/test/ASTMerge/var.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/test/ASTMerge/var.c b/clang/test/ASTMerge/var.c
new file mode 100644
index 00000000000..6e1559a399d
--- /dev/null
+++ b/clang/test/ASTMerge/var.c
@@ -0,0 +1,5 @@
+// RUN: %clang_cc1 -emit-pch -o %t.1.ast %S/Inputs/var1.c
+// RUN: %clang_cc1 -emit-pch -o %t.2.ast %S/Inputs/var2.c
+// RUN: %clang_cc1 -ast-merge %t.1.ast -ast-merge %t.2.ast -fsyntax-only %s 2>&1 | FileCheck %s
+
+// CHECK: declared with incompatible types
OpenPOWER on IntegriCloud