PR middle-end/85602 - -Wsizeof-pointer-memaccess for strncat with size of source
[official-gcc.git] / gcc / testsuite / c-c++-common / Wmultistatement-macros-11.c
blob4f4a123631de4845b649023d216f4966b8bc49cb
1 /* PR c/80116 */
2 /* { dg-options "-Wmultistatement-macros" } */
3 /* { dg-do compile } */
5 enum E { A, B };
7 const char *
8 foo (enum E e)
10 #define CASE(X) case X: return #X
11 switch (e)
13 CASE (A);
14 CASE (B);
15 default:
16 return "<unknown>";
18 #undef CASE