2018-11-07 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / initlist-template1.C
bloba24e205d71c814768b2542676b0b9247b336c89c
1 // PR c++/70824
2 // { dg-do compile { target c++11 } }
4 #include <initializer_list>
6 constexpr
7 int
8 max(std::initializer_list<int> __l)
9 { return *__l.begin(); }
11 template <class Src>
12 void
13 a() {
14   const int v =  max({1});