* decl.c (make_typename_type): s/parameters/arguments/.
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / constexpr-initlist3.C
blob912cf910ec63c2d24dae07a1edddbc8140818ff1
1 // { dg-do compile { target c++11 } }
3 #include <initializer_list>
4 #define SA(X) static_assert(X,#X)
6 constexpr int f(std::initializer_list<int> l) { return l.begin()[0]; }
8 int main()
10   constexpr int i = f({42});
11   SA(i==42);