aboutsummaryrefslogtreecommitdiff
path: root/clang/test/Frontend/fixed_point_as_variables.c
blob: 1eb969a355d3b72249fb6f07a78a9fe5d458f4a6 (plain)
1
2
3
4
5
6
7
8
9
10
11
// 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