repo.or.cz
/
llvm-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[flang][cuda] Adapt ExternalNameConversion to work in gpu module (#117039)
[llvm-project.git]
/
clang
/
test
/
AST
/
regression-new-expr-crash.cpp
blob
e1d93f92a125b21a3e98f3b9cb084c69a4feffab
1
// RUN: %clang_cc1 -triple x86_64-unknown-unknown -fsyntax-only -verify %s
2
3
struct
Bar
{
int
a
;};
4
const
Bar arr
[
2
] = {{
1
}};
5
6
struct
Foo
{};
7
8
const int
b
=
2
;
9
10
void
foo
(
int
a
) {
11
Foo
*
foo_array
;
12
foo_array
=
new
Foo
[
arr
[
0
].
a
];
13
}
14
15
void
Test
(
int
N
) {
16
int
arr
[
N
];
17
decltype
([&
arr
]{}) *
p
;
// expected-error {{lambda expression in an unevaluated operand}}
18
}