Debian Codegraph @

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

raw
1 // RUN: %clang_analyze_cc1 -analyzer-checker=core,unix.BlockInCriticalSection -verify -Wno-objc-root-class %s
2 // expected-no-diagnostics
3
4 @interface SomeClass
5 -(void)someMethod;
6 @end
7
8 void shouldNotCrash(SomeClass *o) {
9 [o someMethod];
10 }