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

struct IsLiteral {};

constexpr auto ab = IsLiteral();

constexpr IsLiteral bar(IsLiteral x) { return x; }

constexpr auto xy = bar(ab);