c++: Add test [PR95288]
authorMarek Polacek <polacek@redhat.com>
Mon, 13 Jul 2020 17:05:06 +0000 (13:05 -0400)
committerMarek Polacek <polacek@redhat.com>
Mon, 13 Jul 2020 17:05:32 +0000 (13:05 -0400)
commit6a9a3434c7396ea14c8f9c291694faea382c36dc
treeb1321e633625ca3f5a150842a3d9e590f499a3f3
parent776e48e0931db69f158f40e5cb8e15463d879a42
c++: Add test [PR95288]

Somewhat improved by r11-2064, though we still generate junk that seems
redundant.  But at least it says
error: expected ‘}’ before ‘.’ token

PR c++/95288
* g++.dg/diagnostic/enum2.C: New test.
gcc/testsuite/g++.dg/diagnostic/enum2.C [new file with mode: 0644]