summaryrefslogtreecommitdiffstats
path: root/test/Lexer/hexfloat.cpp
blob: a3b230e78f1616eebe38ef7b42767a70cdbcb3ca (plain)
1
2
3
4
5
6
7
8
// 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}}
#else
float f = 0x1p+1; // expected-warning {{invalid suffix}}
#endif
OpenPOWER on IntegriCloud