aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/warn/Wparentheses-27.C
blob: 7c05f7e806ce7f1181c85d1b56c9f634c302ad56 (plain)
1
2
3
4
5
6
7
8
// PR c++/54194
// { dg-options "-Wparentheses" }

int main()
{
  char in[4] = { 0 };
  in[1] = in[1] & 0x0F | ((in[3] & 0x3C) << 2); // { dg-warning "17:suggest parentheses" }
}