7 lines · c
1// RUN: not %clang_cc1 -fsyntax-only %s -verify2// RUN: %clang_cc1 -triple %itanium_abi_triple -fshort-enums -fsyntax-only %s -verify3// expected-no-diagnostics4 5enum x { A };6int t0[sizeof(enum x) == 1 ? 1 : -1];7 1// RUN: not %clang_cc1 -fsyntax-only %s -verify2// RUN: %clang_cc1 -triple %itanium_abi_triple -fshort-enums -fsyntax-only %s -verify3// expected-no-diagnostics4 5enum x { A };6int t0[sizeof(enum x) == 1 ? 1 : -1];7