bolt/deps/llvm-18.1.8/clang/test/Frontend/fixed_point_as_variables.c
2025-02-14 19:21:04 +01:00

11 lines
316 B
C

// RUN: %clang_cc1 -x c -verify %s
// RUN: %clang_cc1 -x c -verify %s -ffixed-point -DFIXED_POINT=1
int _Accum;
#ifdef FIXED_POINT
// expected-error@4{{cannot combine with previous 'int' declaration specifier}}
// expected-warning@4{{declaration does not declare anything}}
#else
// expected-no-diagnostics
#endif