You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
mutex_exclusive_lock(late_parsing.a_mutex_defined_early); // expected-warning{{mutex 'a_mutex_defined_early' must be acquired before 'a_mutex_defined_late'}}
mutex_exclusive_lock(late_parsing.a_mutex_defined_very_late); // expected-warning{{mutex 'a_mutex_defined_very_late' must be acquired before 'a_mutex_defined_late'}}
// We had a problem where we'd skip all attributes that follow a late-parsed
189
143
// attribute in a single __attribute__.
190
144
voidrun(void) __attribute__((guarded_by(mu1), guarded_by(mu1))); // expected-warning 2{{only applies to non-static data members and global variables}}
191
-
192
-
intvalue_with_wrong_number_of_argsGUARDED_BY(mu1, mu2); // expected-error{{'guarded_by' attribute takes one argument}}
193
-
194
-
int*ptr_with_wrong_number_of_argsPT_GUARDED_BY(mu1, mu2); // expected-error{{'pt_guarded_by' attribute takes one argument}}
195
-
196
-
intvalue_with_no_open_brace __attribute__((guarded_by)); // expected-error{{'guarded_by' attribute takes one argument}}
197
-
int*ptr_with_no_open_brace __attribute__((pt_guarded_by)); // expected-error{{'pt_guarded_by' attribute takes one argument}}
198
-
199
-
intvalue_with_no_open_brace_on_acquire_after __attribute__((acquired_after)); // expected-error{{'acquired_after' attribute takes at least 1 argument}}
200
-
intvalue_with_no_open_brace_on_acquire_before __attribute__((acquired_before)); // expected-error{{'acquired_before' attribute takes at least 1 argument}}
201
-
202
-
intvalue_with_bad_exprGUARDED_BY(bad_expr); // expected-error{{use of undeclared identifier 'bad_expr'}}
203
-
int*ptr_with_bad_exprPT_GUARDED_BY(bad_expr); // expected-error{{use of undeclared identifier 'bad_expr'}}
204
-
205
-
intvalue_with_bad_expr_on_acquire_after __attribute__((acquired_after(other_bad_expr))); // expected-error{{use of undeclared identifier 'other_bad_expr'}}
206
-
intvalue_with_bad_expr_on_acquire_before __attribute__((acquired_before(other_bad_expr))); // expected-error{{use of undeclared identifier 'other_bad_expr'}}
0 commit comments