Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / Analysis / block-in-critical-section.m
blob73d58479f4bf4afbbb8d8170751ac90a5e353b10
1 // RUN: %clang_analyze_cc1 -analyzer-checker=core,alpha.unix.BlockInCriticalSection -verify -Wno-objc-root-class %s
2 // expected-no-diagnostics
4 @interface SomeClass
5 -(void)someMethod;
6 @end
8 void shouldNotCrash(SomeClass *o) {
9   [o someMethod];