]> git.lizzy.rs Git - rust.git/blobdiff - src/test/codegen/external-no-mangle-statics.rs
Merge commit '40dd3e2b7089b5e96714e064b731f6dbf17c61a9' into sync_cg_clif-2021-05-27
[rust.git] / src / test / codegen / external-no-mangle-statics.rs
index ee61814678ce4a7d119e2b950eef9e1f4eb72a3e..feb4af6286eea1c8d4726a05eb53670569c65a9f 100644 (file)
@@ -58,7 +58,6 @@ mod private {
     pub static mut L: u8 = 0;
 };
 
-// The surrounding item should not accidentally become external
 fn x() {
     // CHECK: @M = local_unnamed_addr constant
     #[no_mangle]
@@ -76,6 +75,3 @@ fn x() {
     #[no_mangle]
     pub static mut P: u8 = 0;
 }
-// CHECK-LABEL: ; external_no_mangle_statics::x
-// CHECK-NEXT: ; Function Attrs:
-// CHECK-NEXT: define internal