3 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -129,6 +129,9 @@ pub fn files_for_miropt_test(
129
129
130
130
out. push ( MiroptTestFile { expected_file, from_file, to_file } ) ;
131
131
}
132
+ if !run_filecheck && l. trim_start ( ) . starts_with ( "// CHECK" ) {
133
+ panic ! ( "error: test contains filecheck directive but is marked `skip-filecheck`" ) ;
134
+ }
132
135
}
133
136
134
137
MiroptTest { run_filecheck, suffix, files : out, passes }
Original file line number Diff line number Diff line change 1
- // skip-filecheck
2
1
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
3
2
//! Tests that we can propagate into places that are projections into unions
4
3
//@ compile-flags: -Zunsound-mir-opts -C debuginfo=full
@@ -8,7 +7,7 @@ fn val() -> u32 {
8
7
9
8
// EMIT_MIR union.main.DestinationPropagation.diff
10
9
fn main ( ) {
11
- // CHECK-LABEL: fn args (
10
+ // CHECK-LABEL: fn main (
12
11
// CHECK: {{_.*}} = Un { us: const 1_u32 };
13
12
union Un {
14
13
us : u32 ,
Original file line number Diff line number Diff line change 1
- // skip-filecheck
2
1
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
3
2
// This test is a mirror of codegen/issue-59352.rs.
4
3
// The LLVM inliner doesn't inline `char::method::is_digit()` and so it doesn't recognize this case
0 commit comments