Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / Sema / c2x-attr.c
blob142bb94c28fcb6132cccfeef9c6b4d19d5bc1df6
1 // RUN: %clang_cc1 -fsyntax-only -std=c2x -Wpre-c2x-compat -verify=pre-c2x %s
2 // RUN: %clang_cc1 -fsyntax-only -std=c17 -Wc2x-extensions -verify=c2x-ext %s
4 [[]] void func(); // pre-c2x-warning {{[[]] attributes are incompatible with C standards before C23}}
5 // c2x-ext-warning@-1 {{[[]] attributes are a C23 extension}}