summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/constexpr-ellipsis.C
blob: 5d090b541d4674d0c641e4d319f7ec255b3b6505 (plain)
1
2
3
4
5
// { dg-options -std=c++0x }
constexpr int ellipsis(...) { return 1; }

constexpr int ellipsis_c = ellipsis(); // OK
constexpr int ellipsis_c2 = ellipsis(42); // Internal error