summaryrefslogtreecommitdiff
path: root/test/Modules/module_map_cwd.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/Modules/module_map_cwd.c')
-rw-r--r--test/Modules/module_map_cwd.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/Modules/module_map_cwd.c b/test/Modules/module_map_cwd.c
new file mode 100644
index 000000000000..d76734adeeb5
--- /dev/null
+++ b/test/Modules/module_map_cwd.c
@@ -0,0 +1,9 @@
+// RUN: rm -rf %t
+// RUN: mkdir %t
+// RUN: echo 'module X { header "x.h" }' > %t/map
+// RUN: echo 'extern int n;' > %t/x.h
+// RUN: cd %t
+// RUN: %clang_cc1 %s -fmodules -fmodule-map-file=map -fmodules-cache-path=. -verify -I.
+// expected-no-diagnostics
+#include "x.h"
+int *m = &n;