1 // no-system-llvm: needs #92110
2 // compile-flags: -Cno-prepopulate-passes
5 // This test checks that drop calls in unwind landing pads
6 // get the `cold` attribute.
8 // CHECK-LABEL: @check_cold
9 // CHECK: call void {{.+}}drop_in_place{{.+}} [[ATTRIBUTES:#[0-9]+]]
10 // CHECK: attributes [[ATTRIBUTES]] = { cold }
12 pub fn check_cold(f: fn(), x: Box<u32>) {