summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/constexpr-empty.C
blob: a9fc4388a34b18e67a3075fa2fc7dbfe4f93a5d1 (plain)
1
2
3
4
5
6
7
// { dg-options -std=c++0x }

struct Empty {};

constexpr bool f(Empty) { return true; }

constexpr bool x(f(Empty{}));