summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/initlist34.C
blob: 92f5a3a4605f0a354d08ac409ef78aeb0e10002c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// PR c++/44157
// { dg-options "-std=c++0x" }

#include <initializer_list>

template<typename T>
void f(T) { }

int main() {
  std::initializer_list<int> a = { 0 };
  f(a);

  f<std::initializer_list<int> >({ 0 });
}