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] Add tracking source deduction guide for the explicitly-written
[llvm-project.git]
/
lldb
/
test
/
API
/
lang
/
cpp
/
static_members
/
main.cpp
blob
df11c4c5cf7eccf3d4d3552dd554f31301059d2a
1
struct
A
{
2
short
m_a
;
3
static long
s_b
;
4
static int
s_c
;
5
6
long
access
() {
7
return
m_a
+
s_b
+
s_c
;
// stop in member function
8
}
9
};
10
11
long
A
::
s_b
=
2
;
12
int
A
::
s_c
=
3
;
13
14
int
main
() {
15
A my_a
;
16
my_a
.
m_a
=
1
;
17
18
int
arr
[
2
]{
0
};
19
20
my_a
.
access
();
// stop in main
21
return
0
;
22
}