// RUN: %clang_cc1 -fsyntax-only -verify -Wthread-safety -Wthread-safety-beta %s
// Define the mutex struct.
// Simplified only for test purpose.
;
;
// Declare mutex lock/unlock functions.
void ;
void ;
void ;
void ;
void ;
// Define global variables.
struct Mutex mu1;
struct Mutex mu2 ;
struct Foo foo_ = ;
int a_ ;
int *b_ = &a_;
int c_ GUARDED_VAR;
int *d_ PT_GUARDED_VAR = &c_;
// Define test functions.
int
int
int
static int
void
int
int
// We had a problem where we'd skip all attributes that follow a late-parsed
// attribute in a single __attribute__.
void ; // expected-warning 2{{only applies to non-static data members and global variables}}