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
Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git]
/
clang
/
test
/
Analysis
/
int128-nocrash.c
blob
457254ce50caf03255c81f78858e230dd106d5bc
1
// RUN: %clang_analyze_cc1 -analyzer-checker=optin.portability.UnixAPI \
2
// RUN: -triple x86_64-pc-linux-gnu -x c %s
3
4
// Don't crash!
5
// expected-no-diagnostics
6
const
__int128_t a
= ( (
__int128_t
)
1
<<
64
);
7
const
_BitInt
(
72
)
b
= (
1
<<
72
);
8
9
void
int128
() {
10
2
>>
a
;
11
}
12
13
void
withbitint
() {
14
2
>>
b
;
15
}