diff options
Diffstat (limited to 'gcc/testsuite/c-c++-common/Wduplicated-branches-10.c')
-rw-r--r-- | gcc/testsuite/c-c++-common/Wduplicated-branches-10.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/gcc/testsuite/c-c++-common/Wduplicated-branches-10.c b/gcc/testsuite/c-c++-common/Wduplicated-branches-10.c new file mode 100644 index 0000000..8d918ef --- /dev/null +++ b/gcc/testsuite/c-c++-common/Wduplicated-branches-10.c @@ -0,0 +1,18 @@ +/* PR c/64279 */ +/* { dg-do compile } */ +/* { dg-options "-Wduplicated-branches" } */ + +#define DEBUG(msg) ; + +void +f (int i) +{ + if (i > 9) + { + DEBUG ("foo"); + } + else + { + DEBUG ("bar"); + } +} |