forked from OSchip/llvm-project
16 lines
253 B
Plaintext
16 lines
253 B
Plaintext
|
// RUN: clang-tidy %s -checks=-*,bugprone-unused-raii -- | count 0
|
||
|
|
||
|
struct CxxClass {
|
||
|
~CxxClass() {}
|
||
|
};
|
||
|
|
||
|
@interface ObjcClass {
|
||
|
}
|
||
|
- (CxxClass)set:(int)p;
|
||
|
@end
|
||
|
|
||
|
void test(ObjcClass *s) {
|
||
|
[s set:1]; // ok, no crash, no diagnostic emitted.
|
||
|
return;
|
||
|
}
|