llvm-project/clang/test/Analysis/block-in-critical-section.m

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

11 lines
246 B
Mathematica
Raw Normal View History

// RUN: %clang_analyze_cc1 -analyzer-checker=core,alpha.unix.BlockInCriticalSection -verify -Wno-objc-root-class %s
// expected-no-diagnostics
@interface SomeClass
-(void)someMethod;
@end
void shouldNotCrash(SomeClass *o) {
[o someMethod];
}