diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2017-05-17 20:22:49 +0000 |
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2017-05-17 20:22:49 +0000 |
| commit | 1ce08792766261dcaa25d8215f9d1c2f70d7b7e9 (patch) | |
| tree | 4022bfb5dc1b2e6f7fc5c337048e370656cc2260 /test/Modules/Inputs | |
| parent | 2410013d9382b8129702fa3a3bf19a370ae7afc3 (diff) | |
Notes
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 |
