diff mbox series

testsuite : __attribute__((fallthrough)) with braces

Message ID CAA42iKwDee2TRsTV_m2p-KsbvR1Vofo56gmP7KO6-LvfYoAh1A@mail.gmail.com
State New
Headers show
Series testsuite : __attribute__((fallthrough)) with braces | expand

Commit Message

Seija K. June 14, 2021, 2:06 p.m. UTC
}
diff mbox series

Patch

diff --git a/gcc/testsuite/c-c++-common/attr-fallthrough-2.c
b/gcc/testsuite/c-c++-common/attr-fallthrough-2.c
index e8659e572ca6d..1f3ca4ac37acf 100644
--- a/gcc/testsuite/c-c++-common/attr-fallthrough-2.c
+++ b/gcc/testsuite/c-c++-common/attr-fallthrough-2.c
@@ -48,6 +48,13 @@  fn (int i)
   case 11:
     bar (1);
     __attribute__((fallthrough, unused)); /* { dg-warning "attribute
ignored" } */
+  case 12:
+      { bar (1);
+        __attribute__((fallthrough));
+      }
+  case 13:
+      { bar (1);
+      } __attribute__((fallthrough));
   default:
     bar (99);