clang/test/Frontend/fixed_point_as_variables.c
raw| 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 |