Skip to content
Snippets Groups Projects
Commit bd3cefe4 authored by Marek Polacek's avatar Marek Polacek
Browse files

testsuite: Fix Wimplicit-fallthrough-20.c.

The r11-4813 patch removed "ignored" from the dg-warnings in this test,
causing this test to fail when compiled as C++.

gcc/testsuite/ChangeLog:

	* c-c++-common/Wimplicit-fallthrough-20.c: Adjust dg-warning.
parent 497c9f8d
No related branches found
No related tags found
No related merge requests found
......@@ -27,13 +27,13 @@ g (int i)
switch (i)
{
case -1:
__attribute__((used)); /* { dg-warning "empty declaration" } */
__attribute__((used)); /* { dg-warning "empty declaration|ignored" } */
default:
__attribute__((used)); /* { dg-warning "empty declaration" } */
__attribute__((used)); /* { dg-warning "empty declaration|ignored" } */
case 1:
return 6;
case 2 ... 4:
__attribute__((used)); /* { dg-warning "empty declaration" } */
__attribute__((used)); /* { dg-warning "empty declaration|ignored" } */
case 5:
return 7;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment