aboutsummaryrefslogtreecommitdiff
path: root/test/Modules/modular_maps.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/Modules/modular_maps.cpp')
-rw-r--r--test/Modules/modular_maps.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/Modules/modular_maps.cpp b/test/Modules/modular_maps.cpp
new file mode 100644
index 000000000000..9c9aba85a918
--- /dev/null
+++ b/test/Modules/modular_maps.cpp
@@ -0,0 +1,8 @@
+// RUN: rm -rf %t
+// RUN: %clang_cc1 -x objective-c++ -fmodules-cache-path=%t -fmodules -fmodule-map-file=%S/Inputs/modular_maps/modulea.map -I %S/Inputs/modular_maps %s -verify
+
+#include "common.h"
+#include "a.h"
+#include "b.h" // expected-error {{private header}}
+const int v = a + c;
+const int val = a + b + c; // expected-error {{undeclared identifier}}