llvm-for-llvmta/tools/clang/test/Modules/Inputs/thread-safety/c.h
Nils Hölscher 7f403f4f1e added clang
2022-04-25 13:02:35 +02:00

11 lines
176 B
C

#include "a.h"
struct X {
mutex m;
int n __attribute__((guarded_by(m)));
void f();
};
inline void unlock(X &x) __attribute__((unlock_function(x.m))) { x.m.unlock(); }