diff options
Diffstat (limited to 'gcc/testsuite/c-c++-common/attr-fallthrough-2.c')
-rw-r--r-- | gcc/testsuite/c-c++-common/attr-fallthrough-2.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/testsuite/c-c++-common/attr-fallthrough-2.c b/gcc/testsuite/c-c++-common/attr-fallthrough-2.c index 156b413..434eab7 100644 --- a/gcc/testsuite/c-c++-common/attr-fallthrough-2.c +++ b/gcc/testsuite/c-c++-common/attr-fallthrough-2.c @@ -21,8 +21,8 @@ fn (int i) case 3: bar (1); __attribute__((fallthrough)) /* { dg-warning "not followed" "" { target c } } */ - case 4: /* { dg-error "expected" } */ - bar (1); + case 4: /* { dg-error "expected" "" { target c } } */ + bar (1); /* { dg-warning "'fallthrough' attribute ignored" "" { target c++ } .-1 } */ __attribute__((fallthrough)) 1; /* { dg-error "expected" "" { target c } .-1 } */ /* { dg-warning "not followed" "" { target *-*-* } .-2 } */ |