diff options
Diffstat (limited to 'gcc/testsuite/g++.dg/warn/Wparentheses-25.C')
-rw-r--r-- | gcc/testsuite/g++.dg/warn/Wparentheses-25.C | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/testsuite/g++.dg/warn/Wparentheses-25.C b/gcc/testsuite/g++.dg/warn/Wparentheses-25.C index d9951a4f46b..d3afa4ce784 100644 --- a/gcc/testsuite/g++.dg/warn/Wparentheses-25.C +++ b/gcc/testsuite/g++.dg/warn/Wparentheses-25.C @@ -5,7 +5,7 @@ // C++ version of Wparentheses-11.c int foo (int); -int +void bar (int a, int b, int c) { foo (!a & b); /* { dg-warning "parentheses" "correct warning" } */ @@ -156,7 +156,7 @@ bar (int a, int b, int c) } -int +void baz (int a, int b, int c) { foo (!a & (b << c));/* { dg-warning "parentheses" "correct warning" } */ |