Add test case for hex floating point constants in < C99 mode

- For: rdar://6096838

llvm-svn: 54036
This commit is contained in:
Daniel Dunbar 2008-07-25 18:41:57 +00:00
parent c94ad4abcb
commit c481f72857

View File

@ -0,0 +1,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