Debian Codegraph @

gcc/testsuite/g++.dg/cpp0x/initlist-template1.C

raw
1 // PR c++/70824
2 // { dg-do compile { target c++11 } }
3
4 #include <initializer_list>
5
6 constexpr
7 int
8 max(std::initializer_list<int> __l)
9 { return *__l.begin(); }
10
11 template <class Src>
12 void
13 a() {
14 const int v = max({1});
15 }