aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/initlist-ctor1.C
blob: bc6d272023468fb149ef46e7f83dbe427a018f41 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// PR c++/52905
// { dg-do compile { target c++11 } }

#include <initializer_list>

enum E { e1, e2 };
struct A
{
  A(std::initializer_list<E>);	// { dg-message "A::A" }
  A(int, E);			// { dg-message "A::A" }
};

A a{e1,2};			// { dg-error "" }