comparison gcc/testsuite/g++.dg/warn/Wparentheses-8.C @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents 04ced10e8804
children
comparison
equal deleted inserted replaced
111:04ced10e8804 131:84e7813d76e9
3 3
4 // C++ version of gcc.dg/Wparentheses-5.c 4 // C++ version of gcc.dg/Wparentheses-5.c
5 5
6 int foo (int); 6 int foo (int);
7 7
8 int 8 void
9 bar (int a, int b, int c) 9 bar (int a, int b, int c)
10 { 10 {
11 foo (a && b || c); // { dg-warning "parentheses" "correct warning" } 11 foo (a && b || c); // { dg-warning "parentheses" "correct warning" }
12 foo ((a && b) || c); 12 foo ((a && b) || c);
13 foo (a && (b || c)); 13 foo (a && (b || c));