File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed
tests/compile-fail/function_calls Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 1- fa2692990c05652c7823c8d2afae501a00a69050
1+ 73d96b090bb68065cd3a469b27cbd568e39bf0e7
Original file line number Diff line number Diff line change 1- #![ feature( llvm_asm ) ]
1+ #![ feature( asm ) ]
22
33use std:: env;
44
@@ -7,9 +7,9 @@ compile_error!("`miri` cfg should not be set in build script");
77
88fn not_in_miri ( ) -> i32 {
99 // Inline assembly definitely does not work in Miri.
10- let dummy = 42 ;
10+ let mut dummy = 42 ;
1111 unsafe {
12- llvm_asm ! ( "" : : "r" ( & dummy) ) ;
12+ asm ! ( "/* {} */" , in ( reg ) & mut dummy) ;
1313 }
1414 return dummy;
1515}
Original file line number Diff line number Diff line change @@ -5,5 +5,5 @@ fn main() {
55 extern "C" {
66 fn FOO ( ) ;
77 }
8- unsafe { FOO ( ) } //~ ERROR unsupported operation: can't call foreign function: FOO
8+ unsafe { FOO ( ) } //~ ERROR attempt to call an exported symbol that is not defined as a function
99}
You can’t perform that action at this time.
0 commit comments