summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/constexpr-empty12.C
blob: 74634424f44bcb3e2eaf1fe7bdba309704d9c88a (plain)
1
2
3
4
5
// { dg-do compile { target c++11 } }

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