Skip to content

Commit ffc2c8a

Browse files
committed
fix the codegen-zero cost test
1 parent a6746e9 commit ffc2c8a

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

‎clang/test/Verify/codegen_zero_cost.cpp‎

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,16 @@ int regular_no_contracts(int x) {
2929
return x + 1;
3030
}
3131

32+
// Spec and proof functions should NOT appear as definitions anywhere in the IR.
33+
// Place CHECK-NOT before positive checks so they scan the entire output.
34+
// CHECK-NOT: define {{.*}}spec_double
35+
// CHECK-NOT: define {{.*}}proof_trivial
36+
3237
// Regular functions should be present in IR:
3338
// CHECK: define {{.*}} @_Z18regular_with_ghosti(
3439
// CHECK: ret i32
3540
// CHECK: define {{.*}} @_Z20regular_no_contractsi(
3641
// CHECK: ret i32
3742

38-
// Spec and proof functions should NOT appear as definitions:
39-
// CHECK-NOT: define {{.*}}spec_double
40-
// CHECK-NOT: define {{.*}}proof_trivial
41-
4243
// Ghost block content should NOT be in regular function IR:
4344
// (The function is defined, but ghost content is absent from its body)

0 commit comments

Comments
 (0)