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

struct IsLiteral {};

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

constexpr auto xy = bar(IsLiteral()); // #1  Error, but should be OK