diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2016-07-23 20:44:14 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2016-07-23 20:44:14 +0000 |
commit | 2b6b257f4e5503a7a2675bdb8735693db769f75c (patch) | |
tree | e85e046ae7003fe3bcc8b5454cd0fa3f7407b470 /test/Lexer/cxx1y_digit_separators.cpp | |
parent | b4348ed0b7e90c0831b925fbee00b5f179a99796 (diff) |
Notes
Diffstat (limited to 'test/Lexer/cxx1y_digit_separators.cpp')
-rw-r--r-- | test/Lexer/cxx1y_digit_separators.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/Lexer/cxx1y_digit_separators.cpp b/test/Lexer/cxx1y_digit_separators.cpp index c4c6aee963da0..55366342eda0d 100644 --- a/test/Lexer/cxx1y_digit_separators.cpp +++ b/test/Lexer/cxx1y_digit_separators.cpp @@ -48,6 +48,9 @@ namespace floating { 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}} } #line 123'456 |