1 // RUN: %clang_cc1 -fsyntax-only -verify -Wthread-safety -Wthread-safety-beta -Wno-objc-root-class %s
3 #include "thread-safety-analysis.h"
5 @interface MyInterface {
11 - (void)incrementValue;
12 - (void)decrementValue;
16 @implementation MyInterface
18 - (void)incrementValue {
23 - (void)decrementValue {
24 lock_.Acquire(); // expected-note{{mutex acquired here}}
26 } // expected-warning{{mutex 'self->lock_' is still held at the end of function}}