]> git.ipfire.org Git - thirdparty/gcc.git/commit
c++: Add fallthrough attribute further test coverage [PR110345]
authorJakub Jelinek <jakub@redhat.com>
Wed, 18 Dec 2024 10:58:39 +0000 (11:58 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 18 Dec 2024 10:58:39 +0000 (11:58 +0100)
commit54ea9cfb676d7c2aa593594dfa48147ba7de18e3
tree5f46e830d260b389e170b8547f3f8301eba8dd35
parent17429c1d20568d4810189196d64081139c0d7785
c++: Add fallthrough attribute further test coverage [PR110345]

Similarly for fallthrough attribute.  Had to add a second testcase because
the diagnostics for fallthrough not used within switch at all is done during
expansion and expansion won't happen if there are other errors in the
testcase.

2024-12-18  Jakub Jelinek  <jakub@redhat.com>

PR c++/110345
* g++.dg/cpp0x/attr-fallthrough1.C: New test.
* g++.dg/cpp0x/attr-fallthrough2.C: New test.
gcc/testsuite/g++.dg/cpp0x/attr-fallthrough1.C [new file with mode: 0644]
gcc/testsuite/g++.dg/cpp0x/attr-fallthrough2.C [new file with mode: 0644]