1 static void a(void) __attribute__ ((context(A
, 0, 1)))
6 static void r(void) __attribute__ ((context(A
, 1, 0)))
11 extern int condition
, condition2
;
13 static int tl(void) __attribute__ ((conditional_context(A
, 0, 1, 0)))
22 static int tl2(void) __attribute__ ((conditional_context(A
, 0, 0, 1)))
31 static int dummy(void)
33 return condition
+ condition2
;
36 static int good_trylock1(void)
43 static int good_trylock2(void)
53 static int good_trylock3(void)
65 static int good_trylock4(void)
77 static void bad_trylock1(void)
86 static int good_trylock5(void)
93 static int good_trylock6(void)
103 static int good_trylock7(void)
115 static int good_trylock8(void)
127 static void bad_trylock2(void)
136 static int good_switch(void)
154 static void bad_lock1(void)
161 * check-name: Check -Wcontext with lock trylocks
164 context-dynamic.c:83:6: warning: context problem in 'bad_trylock1': 'r' expected different context
165 context-dynamic.c:83:6: context 'A': wanted >= 1, got 0
166 context-dynamic.c:133:6: warning: context problem in 'bad_trylock2': 'r' expected different context
167 context-dynamic.c:133:6: context 'A': wanted >= 1, got 0
168 context-dynamic.c:156:6: warning: context problem in 'bad_lock1': 'r' expected different context
169 context-dynamic.c:156:6: context 'A': wanted >= 1, got 0