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
[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git]
/
clang
/
test
/
SemaCXX
/
non-empty-class-size-zero.cpp
blob
52f6e928d4c4509e1b965777e09dc5514c7c632d
1
// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -fsyntax-only %s
2
3
struct
X
{
4
int
array
[
0
];
5
int
array1
[
0
];
6
int
array2
[
0
];
7
X
();
8
~
X
();
9
};
10
11
struct
Y
{
12
int
first
;
13
X padding
;
14
int
second
;
15
};
16
17
int
zero_size_array
[(
sizeof
(
Y
) ==
8
) -
1
];
// no error here!