Sign in
gnu
/
gcc
/
fba228e259dd5112851527f2dbb62c5601100985
/
.
/
gcc
/
testsuite
/
c-c++-common
/
Wmultistatement-macros-11.c
blob: 4f4a123631de4845b649023d216f4966b8bc49cb [
file
] [
log
] [
blame
]
/* PR c/80116 */
/* { dg-options "-Wmultistatement-macros" } */
/* { dg-do compile } */
enum
E
{
A
,
B
};
const
char
*
foo
(
enum
E e
)
{
#define
CASE
(
X
)
case
X
:
return
#X
switch
(
e
)
{
CASE
(
A
);
CASE
(
B
);
default
:
return
"<unknown>"
;
}
#undef
CASE
};