1 // Test that the compiler will catch invalid inline assembly constraints.
12 bad_register_constraint();
18 fn bad_register_constraint() {
21 asm!("" :"={rax"(rax)) //~ ERROR E0668
23 println!("Accumulator is: {}", rax);
29 asm!("callq $0" : : "0"(foo)) //~ ERROR E0668
33 fn wrong_size_output() {
36 asm!("addb $1, $0" : "={rax}"((0i32, rax))); //~ ERROR E0668
38 println!("rax: {}", rax);