diff options
Diffstat (limited to 'test/Modules/Inputs')
-rw-r--r-- | test/Modules/Inputs/module.map | 4 | ||||
-rw-r--r-- | test/Modules/Inputs/objcAtKeywordMissingEnd.h | 3 | ||||
-rw-r--r-- | test/Modules/Inputs/submodule-visibility/b.h | 6 | ||||
-rw-r--r-- | test/Modules/Inputs/submodule-visibility/other.h | 9 |
4 files changed, 21 insertions, 1 deletions
diff --git a/test/Modules/Inputs/module.map b/test/Modules/Inputs/module.map index 7416d7008b85..c0fe6c557f22 100644 --- a/test/Modules/Inputs/module.map +++ b/test/Modules/Inputs/module.map @@ -441,3 +441,7 @@ module DebugNestedB { header "DebugNestedB.h" export * } + +module objcAtKeywordMissingEnd { + header "objcAtKeywordMissingEnd.h" +} diff --git a/test/Modules/Inputs/objcAtKeywordMissingEnd.h b/test/Modules/Inputs/objcAtKeywordMissingEnd.h new file mode 100644 index 000000000000..1196b87eef8e --- /dev/null +++ b/test/Modules/Inputs/objcAtKeywordMissingEnd.h @@ -0,0 +1,3 @@ +@interface MissingEnd // expected-note {{class started here}} + +@ // expected-error {{expected an Objective-C directive after '@'}} expected-error {{missing '@end'}} diff --git a/test/Modules/Inputs/submodule-visibility/b.h b/test/Modules/Inputs/submodule-visibility/b.h index 67ef6529dbd8..39df6a02cb40 100644 --- a/test/Modules/Inputs/submodule-visibility/b.h +++ b/test/Modules/Inputs/submodule-visibility/b.h @@ -4,7 +4,11 @@ int m = n; #include "c.h" #if defined(A) && !defined(ALLOW_NAME_LEAKAGE) -#error A is defined +#warning A is defined #endif #define B + +template<typename T> void b_template() { + N::C::f(0); +} diff --git a/test/Modules/Inputs/submodule-visibility/other.h b/test/Modules/Inputs/submodule-visibility/other.h index f40c757ca62e..4b68c489153c 100644 --- a/test/Modules/Inputs/submodule-visibility/other.h +++ b/test/Modules/Inputs/submodule-visibility/other.h @@ -1 +1,10 @@ #include "c.h" + +#ifndef OTHER_H +#define OTHER_H +namespace N { + struct C { + template<typename U> static void f(U) {} + }; +} +#endif |