mirror of
https://github.com/Mercantec-GHC/h4-projekt-gruppe-0-sm.git
synced 2025-04-27 16:24:07 +02:00
27 lines
355 B
Plaintext
27 lines
355 B
Plaintext
|
|
// #[builtin(Hello)]
|
|
// fn c_hello() -> int {}
|
|
|
|
struct A(bool, bool);
|
|
|
|
fn main() {
|
|
//let mut a = 2;
|
|
//if true {
|
|
// a = 3;
|
|
//} else {
|
|
//
|
|
//}
|
|
//let b = a;
|
|
|
|
let a = A(true, false);
|
|
|
|
match a {
|
|
A(false, false) => {}
|
|
A(false, true) => {}
|
|
A(true, false) => {}
|
|
A(true, true) => {}
|
|
}
|
|
}
|
|
|
|
|