summaryrefslogtreecommitdiffstats
path: root/clang/test/ASTMerge/unnamed_fields/test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/ASTMerge/unnamed_fields/test.cpp')
-rw-r--r--clang/test/ASTMerge/unnamed_fields/test.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/test/ASTMerge/unnamed_fields/test.cpp b/clang/test/ASTMerge/unnamed_fields/test.cpp
new file mode 100644
index 00000000000..6ae3176df4f
--- /dev/null
+++ b/clang/test/ASTMerge/unnamed_fields/test.cpp
@@ -0,0 +1,3 @@
+// RUN: %clang_cc1 -emit-pch -o %t.1.ast %S/Inputs/il.cpp
+// RUN: %clang_cc1 -ast-merge %t.1.ast -fsyntax-only %s 2>&1 | FileCheck --allow-empty %s
+// CHECK-NOT: warning: field '' declared with incompatible types in different translation units ('bool' vs. 'int')
OpenPOWER on IntegriCloud