Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / Lexer / bitint-constants-compat.c
blob607ae88a6188bbb800d85580a24f884000fc8339
1 // RUN: %clang_cc1 -std=c17 -fsyntax-only -verify=ext -Wno-unused %s
2 // RUN: %clang_cc1 -std=c2x -fsyntax-only -verify=compat -Wpre-c2x-compat -Wno-unused %s
3 // RUN: %clang_cc1 -fsyntax-only -verify=cpp -Wno-unused -x c++ %s
5 #if 18446744073709551615uwb // ext-warning {{'_BitInt' suffix for literals is a C23 extension}} \
6 compat-warning {{'_BitInt' suffix for literals is incompatible with C standards before C23}} \
7 cpp-error {{invalid suffix 'uwb' on integer constant}}
8 #endif
10 void func(void) {
11 18446744073709551615wb; // ext-warning {{'_BitInt' suffix for literals is a C23 extension}} \
12 compat-warning {{'_BitInt' suffix for literals is incompatible with C standards before C23}} \
13 cpp-error {{invalid suffix 'wb' on integer constant}}