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
/
unsafe9.rs
blob
fb46c8ffde377d8a076bb16cce5ca5caaf4d421d
1
union U {
2
a: i32,
3
b: f32,
4
c: u8,
5
}
6
7
fn main() {
8
let u = U { a: 14 };
9
let _ = u.a; // { dg-error "access to union" }
10
}