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
[docs] Add LICENSE.txt to the root of the mono-repo
[llvm-project.git]
/
clang
/
test
/
AST
/
issue53742.cpp
blob
93978f2bcc11d46cd1d293acdf19675a6846da54
1
// RUN: %clang_cc1 -fsyntax-only %s -verify
2
3
struct
Data
{
4
char
*
a
;
5
char
*
b
;
6
bool
*
c
;
7
};
8
9
int
main
() {
10
Data in
;
11
in
.
a
=
new
char
[]();
// expected-error {{cannot determine allocated array size from initializer}}
12
in
.
c
=
new
bool
[
100
]();
13
in
.
b
=
new
char
[
100
]();
14
}