aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/initlist58.C
blob: aab21e35d1a2b8ddb7b6821d51197c7237f05617 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// PR c++/50209
// { dg-do compile { target c++11 } }

struct S { int i,j; };

struct A
{
  static void f (S = {1,2});
};

void f (S = {3,4});

int main()
{
  A::f();
  f();
}