blob: 79e06dacbb74958cf3657a94df5ab5cf0ccb59f1 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
|
// expect: 42/8/14/6/
// spec 4.13.1: mnemonics * & | ^
include rt;
void pn(int x) { rt.put_n(x); rt.put_c(10); }
fn main() {
pn(asm { 6 7 * });
pn(asm { 12 10 & });
pn(asm { 12 10 | });
pn(asm { 12 10 ^ });
return 0;
}
|