aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp1z/elide5.C
blob: abe80ec0bc43582fe142c919e15d7734456b1b71 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// PR c++/98642
// { dg-do compile { target c++11 } }

struct base {
  base(void) {}
  base(base &&) = delete;
};

struct foo : public base { };

static foo c1 { };

#if __cpp_aggregate_bases
static foo c2 { {} };
#endif