[Flang] remove whole-archive option for AIX linker (#76039)
[llvm-project.git] / clang / test / Parser / c2x-alignas.c
blob6b02b94c0a295b0d73993baf658e5efae9e397ac
1 // RUN: %clang_cc1 -std=c23 -fsyntax-only -verify %s
3 _Alignas(int) struct c1; // expected-warning {{'_Alignas' attribute ignored}}
5 // FIXME: `alignas` enters into C++ parsing code and never reaches the
6 // declaration specifier attribute diagnostic infrastructure.
7 //
8 // Fixing this will require the C23 notions of `alignas` being a keyword and
9 // `_Alignas` being an alternate spelling integrated into the parsing
10 // infrastructure.
11 alignas(int) struct c1; // expected-error {{misplaced attributes; expected attributes here}}