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
/
static-array-member.cpp
blob
8f575491b245eba56d2efe3c531babdb85ad92d0
1
// RUN: %clang_cc1 -fsyntax-only %s
2
3
struct
X0
{
4
static int
array
[];
5
6
int
x
;
7
int
y
;
8
};
9
10
int
X0
::
array
[
sizeof
(
X0
) *
2
];
11
12
template
<
typename T
,
int
N
>
13
struct
X1
{
14
static
T array
[];
15
};
16
17
template
<
typename T
,
int
N
>
18
T X1
<
T
,
N
>::
array
[
N
];