summaryrefslogtreecommitdiff
path: root/clang/test/SemaObjC/no-warn-qual-mismatch.m
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/SemaObjC/no-warn-qual-mismatch.m')
-rw-r--r--clang/test/SemaObjC/no-warn-qual-mismatch.m16
1 files changed, 16 insertions, 0 deletions
diff --git a/clang/test/SemaObjC/no-warn-qual-mismatch.m b/clang/test/SemaObjC/no-warn-qual-mismatch.m
new file mode 100644
index 0000000..1e3c186
--- /dev/null
+++ b/clang/test/SemaObjC/no-warn-qual-mismatch.m
@@ -0,0 +1,16 @@
+// RUN: %clang_cc1 -fsyntax-only -verify -Wno-objc-root-class %s
+// radar 7211563
+
+@interface X
+
++ (void)prototypeWithScalar:(int)aParameter;
++ (void)prototypeWithPointer:(void *)aParameter;
+
+@end
+
+@implementation X
+
++ (void)prototypeWithScalar:(const int)aParameter {}
++ (void)prototypeWithPointer:(void * const)aParameter {}
+
+@end