aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp23/auto-fncast10.C
blob: 29c779b2cb47fd2c13d18777df79b47144868dba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// { dg-do compile { target c++23 } }

struct S {
  int i1 : auto(12);
  int i2 : auto{12};
  static constexpr auto x = auto(12);
  static constexpr auto y = auto{12};
};

struct R {
  int i;
};

static constexpr R r1 = { auto(23) };
static constexpr R r2 = { auto{23} };
enum E { X = auto(12), Y = auto{1u} };
static_assert (auto(true));
static_assert (auto{true});