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
[AMDGPU][AsmParser][NFC] Get rid of custom default operand handlers.
[llvm-project.git]
/
clang
/
test
/
Analysis
/
PR60412.cpp
blob
da56c68cafc55f58f6c0c2455198f75b9233a31a
1
// RUN: %clang_analyze_cc1 -analyzer-checker=alpha.deadcode.UnreachableCode -verify %s
2
// expected-no-diagnostics
3
4
struct
Test
{
5
Test
() {}
6
~
Test
();
7
};
8
9
int
foo
() {
10
struct
a
{
11
Test b
,
c
;
12
}
d
;
13
return
1
;
14
}
15
16
int
main
() {
17
if
(
foo
())
return
1
;
// <- this used to warn as unreachable
18
}