* g++.dg/cpp0x/enum37.C: Add dg-error.
authorMarek Polacek <polacek@redhat.com>
Mon, 28 Jan 2019 21:58:36 +0000 (21:58 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Mon, 28 Jan 2019 21:58:36 +0000 (21:58 +0000)
From-SVN: r268341

gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/enum37.C

index ab61b302a6dfaf9c39be242f9d3cac39e2b9b347..a36e19c5152c9be4a44d86813059b7d33e99ec77 100644 (file)
@@ -1,3 +1,7 @@
+2019-01-28  Marek Polacek  <polacek@redhat.com>
+
+       * g++.dg/cpp0x/enum37.C: Add dg-error.
+
 2019-01-28  Bernd Edlinger  <bernd.edlinger@hotmail.de>
 
        * c-c++-common/Waddress-of-packed-member-1.c: Extended test case.
index 6aa3d4015d7ddb7352a6822e49583c5d7e2adef9..b67720d5ea028f06d9fb3960120d5a10f56653cb 100644 (file)
@@ -21,4 +21,4 @@ enum E {
 };
 
 same<E,decltype(x)> s;
-same<unsigned int,__underlying_type(E)> s2;
+same<unsigned int,__underlying_type(E)> s2; // { dg-error "incomplete type" "" { target short_enums } }