xref: /llvm-project/clang/test/SemaObjC/no-warn-qual-mismatch.m (revision 0f1c1be1968076d6f96f8a7bcc4a15cf195ecd97)
1// RUN: %clang_cc1  -fsyntax-only -verify -Wno-objc-root-class %s
2// expected-no-diagnostics
3
4@interface X
5
6+ (void)prototypeWithScalar:(int)aParameter;
7+ (void)prototypeWithPointer:(void *)aParameter;
8
9@end
10
11@implementation X
12
13+ (void)prototypeWithScalar:(const int)aParameter {}
14+ (void)prototypeWithPointer:(void * const)aParameter {}
15
16@end
17