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

struct S1 {
  int a{10}, b{20};     // OK
};

struct S2 {
  int a, b = 20;        // OK
};

struct S3 {
  int a = 10, b = 20;
};