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] Handle __declspec() attributes in using
[llvm-project.git]
/
clang
/
test
/
PCH
/
cxx1z-init-statement.h
blob
16bd569c848c4f2e30a192cfa3861843cf7949ae
1
// Header for PCH test cxx1z-init-statement.cpp
2
3
constexpr
int
test_if
(
int
x
) {
4
if
(
int
a
= ++
x
;
a
==
0
) {
5
return
-
1
;
6
}
else if
(++
a
;
a
==
2
) {
7
return
0
;
8
}
9
return
2
;
10
}
11
12
constexpr
int
test_switch
(
int
x
) {
13
switch
(
int
a
= ++
x
;
a
) {
14
case
0
:
15
return
-
1
;
16
case
1
:
17
return
0
;
18
case
2
:
19
return
1
;
20
}
21
return
2
;
22
}