diff options
Diffstat (limited to 'test/Lexer/hexfloat.cpp')
-rw-r--r-- | test/Lexer/hexfloat.cpp | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/test/Lexer/hexfloat.cpp b/test/Lexer/hexfloat.cpp index 493b64e62740..23daa49ad210 100644 --- a/test/Lexer/hexfloat.cpp +++ b/test/Lexer/hexfloat.cpp @@ -1,9 +1,4 @@ // RUN: %clang_cc1 -fsyntax-only -verify -pedantic %s -// RUN: %clang_cc1 -std=c++0x -fsyntax-only -verify %s -// XFAIL: * +// RUN: %clang_cc1 -std=c++11 -fsyntax-only -verify -pedantic %s +float f = 0x1p+1; // expected-warning{{hexadecimal floating constants are a C99 feature}} -#ifndef __GXX_EXPERIMENTAL_CXX0X__ -float f = 0x1p+1; // expected-warning {{incompatible with C++0x}} -#else -float f = 0x1p+1; // expected-warning {{invalid suffix}} -#endif |