1 // RUN: %clang_cc1 %s -Wthread-safety-analysis -verify -fexceptions
2 // expected-no-diagnostics
6 void Lock() __attribute__((exclusive_lock_function()));
7 void Unlock() __attribute__((unlock_function()));
14 void foo() __attribute__((exclusive_locks_required(mu1
))) __attribute__((exclusive_locks_required(mu2
))) {}
17 void bar() __attribute__((exclusive_locks_required(mu1
))) __attribute__((exclusive_locks_required(mu2
))) {