From 56d91b49b13fe55c918afbda19f6165b5fbff87a Mon Sep 17 00:00:00 2001 From: Dimitry Andric Date: Wed, 15 Aug 2012 20:02:54 +0000 Subject: Vendor import of clang trunk r161861: http://llvm.org/svn/llvm-project/cfe/trunk@161861 --- test/Modules/Inputs/Module.framework/Headers/Module.h | 6 +++++- test/Modules/Inputs/category_right.h | 2 +- test/Modules/Inputs/import-decl.h | 1 + test/Modules/Inputs/module.map | 3 +++ 4 files changed, 10 insertions(+), 2 deletions(-) create mode 100644 test/Modules/Inputs/import-decl.h (limited to 'test/Modules/Inputs') diff --git a/test/Modules/Inputs/Module.framework/Headers/Module.h b/test/Modules/Inputs/Module.framework/Headers/Module.h index 738b2221cbb5..f8949848bd4c 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 d993b50db4bf..812a84078249 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 000000000000..9741d6c543ee --- /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 e8d1f2c666fc..79056cb51800 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" +} -- cgit v1.3