Sign in
llvm
/
llvm-project
/
refs/tags/llvmorg-11.1.0-rc2
/
.
/
clang
/
test
/
AST
/
regression-new-expr-crash.cpp
blob: 81dd193b93e8816bb9f70183d66559841dc12f4f [
file
] [
log
] [
blame
]
// RUN: %clang_cc1 -triple x86_64-unknown-unknown -fsyntax-only %s
struct
Bar
{
int
a
;};
const
Bar
arr
[
2
]
=
{{
1
}};
struct
Foo
{};
const
int
b
=
2
;
void
foo
(
int
a
)
{
Foo
*
foo_array
;
foo_array
=
new
Foo
[
arr
[
0
].
a
];
}