summaryrefslogtreecommitdiffstats
path: root/clang/test/Modules/Inputs
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/Modules/Inputs')
-rw-r--r--clang/test/Modules/Inputs/System/usr/include/assert.h2
-rw-r--r--clang/test/Modules/Inputs/System/usr/include/module.map22
-rw-r--r--clang/test/Modules/Inputs/System/usr/include/tcl-private/header.h2
3 files changed, 26 insertions, 0 deletions
diff --git a/clang/test/Modules/Inputs/System/usr/include/assert.h b/clang/test/Modules/Inputs/System/usr/include/assert.h
new file mode 100644
index 00000000000..844e3790912
--- /dev/null
+++ b/clang/test/Modules/Inputs/System/usr/include/assert.h
@@ -0,0 +1,2 @@
+// assert.h
+#define DARWIN_C_EXCLUDED 1
diff --git a/clang/test/Modules/Inputs/System/usr/include/module.map b/clang/test/Modules/Inputs/System/usr/include/module.map
index 9b2f3af2bac..1d88ca380f4 100644
--- a/clang/test/Modules/Inputs/System/usr/include/module.map
+++ b/clang/test/Modules/Inputs/System/usr/include/module.map
@@ -30,3 +30,25 @@ module uses_other_constants {
header "uses_other_constants.h"
export *
}
+
+module Darwin {
+ module C {
+ module excluded {
+ requires excluded
+ header "assert.h"
+ }
+ }
+}
+
+module Tcl {
+ module Private {
+ requires excluded
+ umbrella ""
+ }
+}
+
+module IOKit {
+ module avc {
+ requires cplusplus
+ }
+}
diff --git a/clang/test/Modules/Inputs/System/usr/include/tcl-private/header.h b/clang/test/Modules/Inputs/System/usr/include/tcl-private/header.h
new file mode 100644
index 00000000000..0e8fb64a712
--- /dev/null
+++ b/clang/test/Modules/Inputs/System/usr/include/tcl-private/header.h
@@ -0,0 +1,2 @@
+// tcl-private/header.h
+#define TCL_PRIVATE 1
OpenPOWER on IntegriCloud