summaryrefslogtreecommitdiffstats
path: root/clang/test/Lexer/rdr-6096838.c
blob: 1b56a910db71645db561af6d448131005c3256e8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* RUN: clang -fsyntax-only -verify %s &&
 * RUN: clang -std=gnu89 -fsyntax-only -verify %s &&
 * RUN: clang -DPEDANTIC -pedantic -std=gnu89 -fsyntax-only -verify %s
 */

#ifdef PEDANTIC

long double d = 0x0.0000003ffffffff00000p-16357L; /* expected-warning {{ hexadecimal floating constants are a C99 feature }} */

#else

long double d = 0x0.0000003ffffffff00000p-16357L;

#endif
OpenPOWER on IntegriCloud