aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/constexpr-compound.C
blob: bfe4e13d4a7e18b17fc8636ddc61ad30dfb4150a (plain)
1
2
3
4
5
6
7
8
9
// { dg-do compile { target c++11 } }

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