mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-12-14 19:49:36 +00:00
Add test case for hex floating point constants in < C99 mode
- For: rdar://6096838 llvm-svn: 54036
This commit is contained in:
parent
c94ad4abcb
commit
c481f72857
14
clang/test/Lexer/rdr-6096838.c
Normal file
14
clang/test/Lexer/rdr-6096838.c
Normal 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
|
Loading…
Reference in New Issue
Block a user