diff --git a/test/CXX/drs/dr19xx.cpp b/test/CXX/drs/dr19xx.cpp index dd98aafb5119f4d047c4ccaab355d8f2440a07e0..56f617d06d2d7cbb0ab15e1e3fedfd29af6f38c9 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 fb9368708a22e61cd24a22c3de007df7b160fdc1..852c6bd6054c468a658da9912660071cc80475e5 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>