From: David Majnemer Date: Thu, 19 Feb 2015 07:29:01 +0000 (+0000) Subject: Mark DR1940 as implemented X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=68ff8b3015f7de806ccb67b1a80eb1a9a8aecceb;p=clang Mark DR1940 as implemented git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@229829 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/CXX/drs/dr19xx.cpp b/test/CXX/drs/dr19xx.cpp index 56f617d06d..9c2d3e7c17 100644 --- a/test/CXX/drs/dr19xx.cpp +++ b/test/CXX/drs/dr19xx.cpp @@ -39,6 +39,15 @@ namespace dr1902 { // dr1902: 3.7 #endif } +#if __cplusplus >= 201103L +namespace dr1940 { // dr1940: yes +static union { + static_assert(true, ""); // ok + static_assert(false, ""); // expected-error {{static_assert failed}} +}; +} +#endif + #if __cplusplus >= 201402L namespace dr1947 { // dr1947: yes unsigned o = 0'01; // ok diff --git a/www/cxx_dr_status.html b/www/cxx_dr_status.html index 852c6bd605..e70604f8cb 100644 --- a/www/cxx_dr_status.html +++ b/www/cxx_dr_status.html @@ -11455,7 +11455,7 @@ and POD class 1940 DR static_assert in anonymous unions - Unknown + Yes 1941