diff options
Diffstat (limited to 'test/Modules/Inputs')
-rw-r--r-- | test/Modules/Inputs/Module.framework/Headers/Module.h | 6 | ||||
-rw-r--r-- | test/Modules/Inputs/category_right.h | 2 | ||||
-rw-r--r-- | test/Modules/Inputs/import-decl.h | 1 | ||||
-rw-r--r-- | test/Modules/Inputs/module.map | 3 |
4 files changed, 10 insertions, 2 deletions
diff --git a/test/Modules/Inputs/Module.framework/Headers/Module.h b/test/Modules/Inputs/Module.framework/Headers/Module.h index 738b222..f894984 100644 --- a/test/Modules/Inputs/Module.framework/Headers/Module.h +++ b/test/Modules/Inputs/Module.framework/Headers/Module.h @@ -1,4 +1,8 @@ -// expected-warning{{umbrella header}} +// expected-warning 0-1 {{umbrella header}} + +// FIXME: The "umbrella header" warning should be moved to a separate test. +// This "0-1" is only here because the warning is only emitted when the +// module is (otherwise) successfully included. #ifndef MODULE_H #define MODULE_H diff --git a/test/Modules/Inputs/category_right.h b/test/Modules/Inputs/category_right.h index d993b50..812a840 100644 --- a/test/Modules/Inputs/category_right.h +++ b/test/Modules/Inputs/category_right.h @@ -8,5 +8,5 @@ -(void)right2; @end -@interface Foo(Duplicate) // expected-warning {{duplicate definition of category}} +@interface Foo(Duplicate) @end diff --git a/test/Modules/Inputs/import-decl.h b/test/Modules/Inputs/import-decl.h new file mode 100644 index 0000000..9741d6c --- /dev/null +++ b/test/Modules/Inputs/import-decl.h @@ -0,0 +1 @@ +struct T {}; diff --git a/test/Modules/Inputs/module.map b/test/Modules/Inputs/module.map index e8d1f2c..79056cb 100644 --- a/test/Modules/Inputs/module.map +++ b/test/Modules/Inputs/module.map @@ -84,3 +84,6 @@ module MethodPoolA { module MethodPoolB { header "MethodPoolB.h" } +module import_decl { + header "import-decl.h" +} |