summaryrefslogtreecommitdiffstats
path: root/clang/test/Modules/objc-method-redecl.m
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/Modules/objc-method-redecl.m')
-rw-r--r--clang/test/Modules/objc-method-redecl.m8
1 files changed, 8 insertions, 0 deletions
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
OpenPOWER on IntegriCloud