Benjamin Kramer | 0b495cd | 2010-06-25 12:48:07 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -fsyntax-only -verify -pedantic %s |
2 | // RUN: %clang_cc1 -std=c++0x -fsyntax-only -verify %s | ||||
3 | // XFAIL: * | ||||
Sean Hunt | 8c72340 | 2010-01-10 23:37:56 +0000 | [diff] [blame] | 4 | |
5 | #ifndef __GXX_EXPERIMENTAL_CXX0X__ | ||||
6 | float f = 0x1p+1; // expected-warning {{incompatible with C++0x}} | ||||
7 | #else | ||||
8 | float f = 0x1p+1; // expected-warning {{invalid suffix}} | ||||
9 | #endif |