Skip to content

Commit 1e10428

Browse files
committed
Fix another UI test that needs its unused variables preserved
1 parent 00aceae commit 1e10428

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/ui/extern/extern-types-field-offset.rs

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
//@ check-run-results
33
//@ exec-env:RUST_BACKTRACE=0
44
//@ normalize-stderr-test: "(core/src/panicking\.rs):[0-9]+:[0-9]+" -> "$1:$$LINE:$$COL"
5+
//@ compile-flags: -Z mir-opt-level=0
6+
// (Don't optimize out the unused locals, so that we actually compute the offsets.)
57
#![feature(extern_types)]
68

79
extern "C" {

0 commit comments

Comments
 (0)