summaryrefslogtreecommitdiff
path: root/test/ASTMerge/injected-class-name-decl/test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/ASTMerge/injected-class-name-decl/test.cpp')
-rw-r--r--test/ASTMerge/injected-class-name-decl/test.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/ASTMerge/injected-class-name-decl/test.cpp b/test/ASTMerge/injected-class-name-decl/test.cpp
new file mode 100644
index 0000000000000..9f31674108adb
--- /dev/null
+++ b/test/ASTMerge/injected-class-name-decl/test.cpp
@@ -0,0 +1,3 @@
+// RUN: %clang_cc1 -std=c++1z -emit-pch -o %t.ast %S/Inputs/inject1.cpp
+// RUN: %clang_cc1 -std=c++1z -emit-obj -o /dev/null -ast-merge %t.ast %S/Inputs/inject2.cpp
+// expected-no-diagnostics