summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/test/modularize/ProblemsInconsistent.modularize
diff options
context:
space:
mode:
Diffstat (limited to 'clang-tools-extra/test/modularize/ProblemsInconsistent.modularize')
-rw-r--r--clang-tools-extra/test/modularize/ProblemsInconsistent.modularize10
1 files changed, 10 insertions, 0 deletions
diff --git a/clang-tools-extra/test/modularize/ProblemsInconsistent.modularize b/clang-tools-extra/test/modularize/ProblemsInconsistent.modularize
new file mode 100644
index 00000000000..dfe03208c87
--- /dev/null
+++ b/clang-tools-extra/test/modularize/ProblemsInconsistent.modularize
@@ -0,0 +1,10 @@
+# RUN: modularize %s -x c++ 2>&1 | FileCheck %s
+
+Inputs/InconsistentHeader1.h
+Inputs/InconsistentHeader2.h
+
+# CHECK: error: 'SYMBOL' defined at both {{.*}}{{[/\\]}}Inputs{{[/\\]}}InconsistentSubHeader.h:3:9 and {{.*}}{{[/\\]}}Inputs/InconsistentSubHeader.h:6:9
+# CHECK-NEXT: error: header '{{.*}}{{[/\\]}}Inputs{{[/\\]}}InconsistentSubHeader.h' has different contents dependening on how it was included
+# CHECK-NEXT: note: 'SYMBOL' in {{.*}}{{[/\\]}}Inputs{{[/\\]}}InconsistentSubHeader.h at 3:9 not always provided
+# CHECK-NEXT: note: 'SYMBOL' in {{.*}}{{[/\\]}}Inputs{{[/\\]}}InconsistentSubHeader.h at 6:9 not always provided
+# CHECK-NEXT: note: 'TypeInt' in {{.*}}{{[/\\]}}Inputs{{[/\\]}}InconsistentSubHeader.h at 10:13 not always provided
OpenPOWER on IntegriCloud