bolt/deps/llvm-18.1.8/clang/test/SemaObjC/no-warn-qual-mismatch.m
2025-02-14 19:21:04 +01:00

16 lines
344 B
Objective-C

// RUN: %clang_cc1 -fsyntax-only -verify -Wno-objc-root-class %s
// expected-no-diagnostics
@interface X
+ (void)prototypeWithScalar:(int)aParameter;
+ (void)prototypeWithPointer:(void *)aParameter;
@end
@implementation X
+ (void)prototypeWithScalar:(const int)aParameter {}
+ (void)prototypeWithPointer:(void * const)aParameter {}
@end