// RUN: %clang_cc1 -std=c++1y -verify %s
int ; // expected-warning {{reserved}}
float ; // expected-warning {{reserved}}
int ;
}
float k = 0x0'.0p0; // '; // expected-error {{expected ';'}}
float l = 0x0.'0p0; // expected-error {{digit separator cannot appear at start of digit sequence}}
float m = 0x0.0'p0; // expected-error {{digit separator cannot appear at end of digit sequence}}
float n = 0x0.0p'0; // expected-error {{digit separator cannot appear at start of digit sequence}}
float o = 0x0.0p0'ms; // expected-error {{digit separator cannot appear at end of digit sequence}}
float p = 0'e1; // expected-error {{digit separator cannot appear at end of digit sequence}}
float q = 0'0e1;
float r = 0.'0e1; // expected-error {{digit separator cannot appear at start of digit sequence}}
float s = 0.0'e1; // expected-error {{digit separator cannot appear at end of digit sequence}}
float t = 0.0e'1; // expected-error {{digit separator cannot appear at start of digit sequence}}
float u = 0x.'p1f; // expected-error {{hexadecimal floating literal requires a significand}}
float v = 0e'f; // expected-error {{exponent has no digits}}
float w = 0x0p'f; // expected-error {{exponent has no digits}}
float x = 0'e+1; // expected-error {{digit separator cannot appear at end of digit sequence}}
float y = 0x0'p+1; // expected-error {{digit separator cannot appear at end of digit sequence}}
}
static_assert;
// x has value 0 in C++11 and 34 in C++1y.
constexpr int x = ;
static_assert;
}
int b = 0'\u12345; // '; // expected-error {{expected ';'}}
constexpr int c ;
constexpr int d ;
static_assert;
static_assert;
}
}
int b = 0'ሴ5; // '; // expected-error {{expected ';'}}
constexpr int c ;
constexpr int d ;
static_assert;
static_assert;
}