hexfloat.cpp revision 0b495cdb1939f8b9e8a470e138dba5204872c38c
1// RUN: %clang_cc1 -fsyntax-only -verify -pedantic %s
2// RUN: %clang_cc1 -std=c++0x -fsyntax-only -verify %s
3// XFAIL: *
4
5#ifndef __GXX_EXPERIMENTAL_CXX0X__
6float f = 0x1p+1; // expected-warning {{incompatible with C++0x}}
7#else
8float f = 0x1p+1; // expected-warning {{invalid suffix}}
9#endif
10