summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/pr47476.C
blob: 1f6f09cccc6dfdf8d86c59af43a4d29dc2b60ef0 (plain)
1
2
3
4
5
6
7
8
9
10
// PR c++/47476
// { dg-do compile }
// { dg-options "-std=c++0x" }

int
foo (int a, int b)
{
  const bool c ((a != 0) == (b != 26));
  return c;
}