Sign in
gnu
/
gcc
/
1f16a020acbea0af26209478990b83b1a1ba3a2b
/
.
/
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
;