19 lines · c
1// RUN: %clang_cc1 -fsyntax-only -fblocks -ffixed-point -verify %s2 3void GH137860_test(void) {4 struct S {5 char h;6 };7 _Atomic struct S s = { .h = UINT8_MIN }; // expected-error {{use of undeclared identifier 'UINT8_MIN'}}8 __c11_atomic_fetch_add(&s.h, UINT8_MIN); // expected-error {{use of undeclared identifier 'UINT8_MIN'}} \9 expected-error {{accessing a member of an atomic structure or union is undefined behavior}}10}11 12int (^GH69470) (int i, int j) = ^(int i, int j)13{ return i / j; }/ j; // expected-error {{use of undeclared identifier 'j'}}14 15void GH69874(void) {16 *a = (a_struct){0}; // expected-error {{use of undeclared identifier 'a'}} \17 expected-error {{use of undeclared identifier 'a_struct'}}18}19