diff options
Diffstat (limited to 'test/Modules')
-rw-r--r-- | test/Modules/Inputs/normal-module-map/Umbrella/Umbrella.h | 1 | ||||
-rw-r--r-- | test/Modules/Inputs/normal-module-map/Umbrella/module.map | 3 | ||||
-rw-r--r-- | test/Modules/normal-module-map.cpp | 6 |
3 files changed, 10 insertions, 0 deletions
diff --git a/test/Modules/Inputs/normal-module-map/Umbrella/Umbrella.h b/test/Modules/Inputs/normal-module-map/Umbrella/Umbrella.h new file mode 100644 index 0000000000..5d201f58d2 --- /dev/null +++ b/test/Modules/Inputs/normal-module-map/Umbrella/Umbrella.h @@ -0,0 +1 @@ +int umbrella; diff --git a/test/Modules/Inputs/normal-module-map/Umbrella/module.map b/test/Modules/Inputs/normal-module-map/Umbrella/module.map new file mode 100644 index 0000000000..dd2e434347 --- /dev/null +++ b/test/Modules/Inputs/normal-module-map/Umbrella/module.map @@ -0,0 +1,3 @@ +module Umbrella { + umbrella "Umbrella.h" +}
\ No newline at end of file diff --git a/test/Modules/normal-module-map.cpp b/test/Modules/normal-module-map.cpp index b6f584d33c..aeb569b872 100644 --- a/test/Modules/normal-module-map.cpp +++ b/test/Modules/normal-module-map.cpp @@ -3,6 +3,12 @@ // FIXME: The expected error here is temporary, since we don't yet have the // logic to build a module from a module map. +#include "Umbrella/Umbrella.h" + +int getUmbrella() { + return umbrella; +} + #include "a1.h" // expected-error{{module 'libA' not found}} #include "b1.h" #include "nested/nested2.h" |