1 // Test for deduction of T as std::initializer_list. This isn't currently
2 // supported by the working draft, but is necessary for perfect forwarding
3 // of initializer-lists to things that can take a std::initializer_list.
5 // { dg-options -std=c++0x }
8 #include <initializer_list>
12 A(std::initializer_list<int>) { }
18 auto g (T&& t) -> decltype (f(t)) // { dg-warning "call" }
25 g({1}); // { dg-warning "deduc" }