Fix testsuite regression caused by r271077
authorJonathan Wakely <jwakely@redhat.com>
Mon, 13 May 2019 20:11:52 +0000 (21:11 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Mon, 13 May 2019 20:11:52 +0000 (21:11 +0100)
commit0dd50fc6f13c02d9d548fd57e7f8f7020241e317
treeba31f3d09476a6895f9bfeca9fc3e631495aa8f1
parente6e08429446ea4c20d57ffa347ea699afdd1d4a6
Fix testsuite regression caused by r271077

* g++.dg/cpp0x/Wattributes1.C: Adjust dg-error line number to fix
regression, by matching a note on any line.
* g++.dg/cpp0x/Wattributes2.C: Add another copy that checks the
correct line number is matched without depending on a library header.

From-SVN: r271133
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/Wattributes1.C
gcc/testsuite/g++.dg/cpp0x/Wattributes2.C [new file with mode: 0644]