xref: /llvm-project/clang/test/Frontend/fixed_point_as_variables.c (revision 2c65860667e202e182264d5c6dfe4c2961542f7d)
1 // RUN: %clang_cc1 -x c -verify %s
2 // RUN: %clang_cc1 -x c -verify %s -ffixed-point -DFIXED_POINT=1
3 
4 int _Accum;
5 
6 #ifdef FIXED_POINT
7 // expected-error@4{{cannot combine with previous 'int' declaration specifier}}
8 // expected-warning@4{{declaration does not declare anything}}
9 #else
10 // expected-no-diagnostics
11 #endif
12