repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
gccrs: Handle `async` functions in traits
[official-gcc.git]
/
gcc
/
testsuite
/
rust
/
compile
/
assume.rs
blob
4dc2fefa86ac7a66c25415aab92cb669be7f6ad4
1
mod intrinsics {
2
extern "rust-intrinsic" {
3
pub fn assume(value: bool);
4
}
5
}
6
7
pub fn foo(v: i32) -> i32 {
8
unsafe { intrinsics::assume (v == 12); }
9
v
10
}
11
12
pub fn main() {
13
}