diff options
Diffstat (limited to 'clang/test/Modules')
-rw-r--r-- | clang/test/Modules/Inputs/objc-method-redecl.h | 4 | ||||
-rw-r--r-- | clang/test/Modules/objc-method-redecl.m | 8 |
2 files changed, 12 insertions, 0 deletions
diff --git a/clang/test/Modules/Inputs/objc-method-redecl.h b/clang/test/Modules/Inputs/objc-method-redecl.h new file mode 100644 index 00000000000..95c6533fad9 --- /dev/null +++ b/clang/test/Modules/Inputs/objc-method-redecl.h @@ -0,0 +1,4 @@ +@interface T +- (void)test; +- (void)test; +@end diff --git a/clang/test/Modules/objc-method-redecl.m b/clang/test/Modules/objc-method-redecl.m new file mode 100644 index 00000000000..f7acda5450d --- /dev/null +++ b/clang/test/Modules/objc-method-redecl.m @@ -0,0 +1,8 @@ +// RUN: %clang_cc1 -fmodules -fmodules-cache-path=%t -x objective-c-header -emit-pch %S/Inputs/objc-method-redecl.h -o %t.pch -Wno-objc-root-class +// RUN: %clang_cc1 -fmodules -fmodules-cache-path=%t -x objective-c -include-pch %t.pch %s -verify -Wno-objc-root-class +// expected-no-diagnostics + +@implementation T +- (void)test { +} +@end |