c++: Add new test [PR79493]
authorMarek Polacek <polacek@redhat.com>
Wed, 23 Feb 2022 17:46:21 +0000 (12:46 -0500)
committerMarek Polacek <polacek@redhat.com>
Wed, 23 Feb 2022 17:47:24 +0000 (12:47 -0500)
commitcdcea7c1ef6586bb1eb0144b741969748cbd780b
tree115ca870e9bfd76233496a431f3257c06fe20856
parent9675ecf7f9beeee340f93c68cf22280f5975a902
c++: Add new test [PR79493]

A nice side effect of r12-1822 was improving the diagnostic
we emit for the following test.

PR c++/79493

gcc/testsuite/ChangeLog:

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