summaryrefslogtreecommitdiff
path: root/test/Modules/conflicts.m
diff options
context:
space:
mode:
Diffstat (limited to 'test/Modules/conflicts.m')
-rw-r--r--test/Modules/conflicts.m7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/Modules/conflicts.m b/test/Modules/conflicts.m
new file mode 100644
index 000000000000..2388e6f1d1cf
--- /dev/null
+++ b/test/Modules/conflicts.m
@@ -0,0 +1,7 @@
+// RUN: rm -rf %t
+// RUN: %clang_cc1 -Wauto-import -fmodules-cache-path=%t -fmodules -I %S/Inputs/Conflicts %s -verify
+
+@import Conflicts;
+
+@import Conflicts.A; // expected-warning{{module 'Conflicts.A' conflicts with already-imported module 'Conflicts.B': we just don't like B}}
+