repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
PR c++/85662
[official-gcc.git]
/
gcc
/
testsuite
/
c-c++-common
/
Wmultistatement-macros-11.c
blob
4f4a123631de4845b649023d216f4966b8bc49cb
1
/* PR c/80116 */
2
/* { dg-options "-Wmultistatement-macros" } */
3
/* { dg-do compile } */
4
5
enum
E
{
A
,
B
};
6
7
const char
*
8
foo
(
enum
E e
)
9
{
10
#define CASE(X) case X: return #X
11
switch
(
e
)
12
{
13
CASE
(
A
);
14
CASE
(
B
);
15
default
:
16
return
"<unknown>"
;
17
}
18
#undef CASE
19
};