aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/constexpr-70204b.C
blob: 2b07d4fec9e8fbd5692f154cc309723beec6ecd3 (plain)
1
2
3
4
5
6
7
8
9
10
// PR c++/70204
// { dg-do compile { target c++11 } }

int a;

void fn1 ()
{
  const int x = 0 * a;
  constexpr int y = x; // { dg-error "constant" }
}