summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/initlist96.C
blob: 94e9c0eb148dbb90305f392184867a4fec39c5a4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// PR c++/66515
// { dg-do compile { target c++11 } }
// { dg-additional-options "-Wno-return-type" }

#include <initializer_list>

struct type_t { };

type_t &
get ()
{
  std::initializer_list<type_t>{ { get () } };
}