summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/constexpr-compound.C
blob: 81fcc54b3e68b56b60cd9d70f6ad89e5fa0b53ce (plain)
1
2
3
4
5
6
7
8
9
// { dg-options "-std=c++0x -pedantic-errors" }

constexpr int f()
{
  {				// { dg-error "" }
    return 1;
  }
  { }				// { dg-error "" }
}