summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/constexpr-empty13.C
blob: 1896ead6dca5d1c1580994f44dc34f692e80d4e6 (plain)
1
2
3
4
5
6
7
// { dg-do compile { target c++11 } }

struct A {
  struct B { } b;
} a;
constexpr int f (A a) { return 42; }
constexpr int i = f(a);