aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/constexpr-ellipsis.C
blob: 8c0783c9acccc1df203ccc537b1d105a0ba46d33 (plain)
1
2
3
4
5
// { dg-do compile { target c++11 } }
constexpr int ellipsis(...) { return 1; }

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