aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/constexpr-empty2.C
blob: 51f3f554dfcd0c908a36105f7e89dc1bc3300f57 (plain)
1
2
3
4
5
6
7
// { dg-do compile { target c++11 } }

struct IsLiteral {};

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

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