Sign in
gnu
/
gcc
/
refs/tags/basepoints/gcc-13
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp1y
/
nsdmi-aggr2.C
blob: 83cb6c2439bdf2ea8237d393cb132dba1166b6aa [
file
] [
log
] [
blame
]
// { dg-do compile { target c++14 } }
struct
S
{
int
a
;
const
char
*
b
;
int
c
;
int
d
=
b
[
a
];
};
constexpr
int
f
(
const
S
&
s
)
{
return
s
.
a
;
}
int
main
()
{
constexpr
int
i
=
f
(
S
{
1
,
"asdf"
});
}