]> git.proxmox.com Git - rustc.git/blobdiff - src/test/codegen/target-cpu-on-functions.rs
New upstream version 1.51.0+dfsg1
[rustc.git] / src / test / codegen / target-cpu-on-functions.rs
index 3fdf6ab6d002f409fc610ed7da018e8bcb3cfdd9..7544ac01309525bdf94bc6bb9c876cb91fb59341 100644 (file)
@@ -9,11 +9,13 @@
 
 // CHECK-LABEL: define {{.*}} @exported() {{.*}} #0
 #[no_mangle]
-pub extern fn exported() {
+pub extern "C" fn exported() {
     not_exported();
 }
 
-// CHECK-LABEL: define {{.*}} @_ZN23target_cpu_on_functions12not_exported{{.*}}() {{.*}} #0
+// CHECK-LABEL: ; target_cpu_on_functions::not_exported
+// CHECK-NEXT: ; Function Attrs:
+// CHECK-NEXT: define {{.*}}() {{.*}} #0
 fn not_exported() {}
 
 // CHECK: attributes #0 = {{.*}} "target-cpu"="{{.*}}"