Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
ext
/
vla18.C
blob: 31a1bb32f1af3e169dda9f8eed2dcfa615af0d9c [
file
] [
log
] [
blame
]
// PR c++/84767
// { dg-do compile }
// { dg-options "" }
int
v
[
1
][
10
];
struct
A
{
A
(
int
);
};
A
::
A
(
int
i
)
{
typedef
int
T
[
1
][
i
];
T
*
x
=
(
T
*)
v
;
(*
x
)[
0
][
0
]
=
0
;
}
A a
=
10
;