aboutsummaryrefslogtreecommitdiff
path: root/test/Modules/string_names.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/Modules/string_names.cpp')
-rw-r--r--test/Modules/string_names.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/Modules/string_names.cpp b/test/Modules/string_names.cpp
new file mode 100644
index 000000000000..ed65aa8a6703
--- /dev/null
+++ b/test/Modules/string_names.cpp
@@ -0,0 +1,6 @@
+// RUN: rm -rf %t
+// RUN: %clang_cc1 -fmodules-cache-path=%t -fmodules -fmodules-decluse -I %S/Inputs/string_names %s -fmodule-name="my/module-a" -verify
+
+#include "a.h"
+#include "b.h" // expected-error {{does not depend on a module exporting}}
+#include "c.h"