Daniel Dunbar | 4f97e01 | 2008-07-25 18:41:57 +0000 | [diff] [blame] | 1 | /* RUN: clang -fsyntax-only -verify %s && |
2 | * RUN: clang -std=gnu89 -fsyntax-only -verify %s && | ||||
3 | * RUN: clang -DPEDANTIC -pedantic -std=gnu89 -fsyntax-only -verify %s | ||||
4 | */ | ||||
5 | |||||
6 | #ifdef PEDANTIC | ||||
7 | |||||
8 | long double d = 0x0.0000003ffffffff00000p-16357L; /* expected-warning {{ hexadecimal floating constants are a C99 feature }} */ | ||||
9 | |||||
10 | #else | ||||
11 | |||||
12 | long double d = 0x0.0000003ffffffff00000p-16357L; | ||||
13 | |||||
14 | #endif |