]> git.lizzy.rs Git - rust.git/blobdiff - src/test/codegen/external-no-mangle-fns.rs
Various minor/cosmetic improvements to code
[rust.git] / src / test / codegen / external-no-mangle-fns.rs
index 3f092b802f99a197d78138570437fef2febabb76..e6b952ec9f6aefb5a82207d8caa23af93abee759 100644 (file)
@@ -8,8 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-// compile-flags: -O
-// `#[no_mangle]`d functions always have external linkage, i.e. no `internal` in their `define`s
+// compile-flags: -C no-prepopulate-passes
+// `#[no_mangle]`d functions always have external linkage, i.e., no `internal` in their `define`s
 
 #![crate_type = "lib"]
 #![no_std]
@@ -43,7 +43,7 @@ pub fn f() {}
 };
 
 // The surrounding item should not accidentally become external
-// CHECK: define internal {{.*}} void @_ZN22external_no_mangle_fns1x
+// CHECK: define internal{{.*}} void @_ZN22external_no_mangle_fns1x
 #[inline(never)]
 fn x() {
     // CHECK: define void @g()