15 lines · c
1// RUN: %clang_cc1 -verify -std=c2y -Wall -pedantic -Wpre-c2y-compat %s2// RUN: %clang_cc1 -verify=pre-c2y -std=c23 -Wall -pedantic %s3 4/* WG14 N3273: Clang 3.55 * alignof of an incomplete array type6 */7 8static_assert(9 alignof(int[]) == /* pre-c2y-warning {{'alignof' on an incomplete array type is a C2y extension}}10 expected-warning {{'alignof' on an incomplete array type is incompatible with C standards before C2y}}11 */12 alignof(int)13);14 15