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
i386, testsuite: Fix non-Unicode character
[official-gcc.git]
/
gcc
/
testsuite
/
rust
/
compile
/
match4.rs
blob
552aa163db504e6f459b5e9557f469bd2050871e
1
enum Foo {
2
A,
3
B,
4
C(char),
5
D { x: i64, y: i64 },
6
}
7
8
fn inspect(f: Foo) {
9
match f {
10
Foo::A => {}
11
Foo::B => {}
12
Foo::C { a } => {}
13
// { dg-error "tuple variant .C. written as struct variant" "" { target *-*-* } .-1 }
14
Foo::D { x, y } => {}
15
}
16
}