aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp2a/paren-init38.C
blob: 58743e051da16490406c74a9b46cd3f99e8d339f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// PR c++/116424
// { dg-do compile { target c++20 } }

struct dd {
  char *ptr;
  dd();
  dd(dd &&__str);
};
struct v {
  dd n{};
  int f = -1;
  v operator|(const v &other) const;
};
struct cc : v {};
static const cc a;
static const cc b;
static const cc c1(a | b);
static const cc c2{a | b};
static const cc c3 = cc(a | b);
static const cc c4 = cc{a | b};