From 497d8655b54c2d44bcdce0135b7afe50cd945715 Mon Sep 17 00:00:00 2001 From: David Majnemer <david.majnemer@gmail.com> Date: Thu, 19 Feb 2015 07:28:57 +0000 Subject: [PATCH] Mark DR1947 as implemented git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@229828 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/CXX/drs/dr19xx.cpp | 8 ++++++++ www/cxx_dr_status.html | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/test/CXX/drs/dr19xx.cpp b/test/CXX/drs/dr19xx.cpp index dd98aafb511..56f617d06d2 100644 --- a/test/CXX/drs/dr19xx.cpp +++ b/test/CXX/drs/dr19xx.cpp @@ -39,6 +39,14 @@ namespace dr1902 { // dr1902: 3.7 #endif } +#if __cplusplus >= 201402L +namespace dr1947 { // dr1947: yes +unsigned o = 0'01; // ok +unsigned b = 0b'01; // expected-error {{invalid digit 'b' in octal constant}} +unsigned x = 0x'01; // expected-error {{invalid suffix 'x'01' on integer constant}} +} +#endif + #if __cplusplus >= 201103L // dr1948: yes // FIXME: This diagnostic could be improved. diff --git a/www/cxx_dr_status.html b/www/cxx_dr_status.html index fb9368708a2..852c6bd6054 100644 --- a/www/cxx_dr_status.html +++ b/www/cxx_dr_status.html @@ -11497,7 +11497,7 @@ and <I>POD class</I></td> <td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/cwg_closed.html#1947">1947</a></td> <td>NAD</td> <td>Digit separators following non-octal prefix</td> - <td class="none" align="center">Unknown</td> + <td class="full" align="center">Yes</td> </tr> <tr id="1948"> <td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/cwg_closed.html#1948">1948</a></td> -- GitLab