aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp/embed-23.C
blob: 5775e67728f11b20bebe174d2b0d73bf8f744d18 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// PR c++/118532
// { dg-do compile { target c++20 } }
// { dg-options "" }

constexpr int fn0 () { return 0; }
constexpr int fn1 () { return 1; }

struct S {
  explicit(fn0()) S(int, int, int);
#define I8 int, int, int, int, int, int, int, int
#define I64 I8, I8, I8, I8, I8, I8, I8, I8
  explicit(fn1()) S(I64, I64, I64, I64, I8);
};

int
main ()
{
  S s4 = {
#embed __FILE__ limit (264)
  }; // { dg-error "converting" }
}