aboutsummaryrefslogtreecommitdiff
path: root/test/Lexer/hexfloat.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-05-20 23:33:51 +0000
committerChris Lattner <sabre@nondot.org>2010-05-20 23:33:51 +0000
commitac0f5e5ed0a45ac96a5958e5832e4bdb45734324 (patch)
treeea61195c980eca3e2afecc48318f498635ebfac6 /test/Lexer/hexfloat.cpp
parentf1860e5c381a2710fcebe6d55d799c6b25c21041 (diff)
Don't warn about use of hex floats in c++ mode by default,
matching G++'s behavior. Warn when -pedantic or -Wc++-hex-floats is passed, and don't warn if -pedantic -Wno-c++-hex-floats are both passed. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@104295 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Lexer/hexfloat.cpp')
-rw-r--r--test/Lexer/hexfloat.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/Lexer/hexfloat.cpp b/test/Lexer/hexfloat.cpp
index 5a62556ff6..a3b230e78f 100644
--- a/test/Lexer/hexfloat.cpp
+++ b/test/Lexer/hexfloat.cpp
@@ -1,5 +1,5 @@
-//RUN: %clang_cc1 -fsyntax-only -verify
-//RUN: %clang_cc1 -std=c++0x -fsyntax-only -verify
+// RUN: %clang_cc1 -fsyntax-only -verify -pedantic
+// RUN: %clang_cc1 -std=c++0x -fsyntax-only -verify
#ifndef __GXX_EXPERIMENTAL_CXX0X__
float f = 0x1p+1; // expected-warning {{incompatible with C++0x}}