Skip to content

Commit 88a55e9

Browse files
committed
Update gc push pop test
1 parent 7ef7ea4 commit 88a55e9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/clangsa/GCPushPop.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@
88
void missingPop() {
99
jl_value_t *x = NULL;
1010
JL_GC_PUSH1(&x); // expected-note{{GC frame changed here}}
11-
} // expected-warning{{Non-popped GC frame present at end of function}}
12-
// expected-note@-1{{Non-popped GC frame present at end of function}}
11+
} // expected-warning@-1{{Non-popped GC frame present at end of function}}
12+
// expected-note@-2{{Non-popped GC frame present at end of function}}
1313

1414

1515
void missingPop2() {
1616
jl_value_t **x;
1717
JL_GC_PUSHARGS(x, 2); // expected-note{{GC frame changed here}}
18-
} // expected-warning{{Non-popped GC frame present at end of function}}
19-
// expected-note@-1{{Non-popped GC frame present at end of function}}
18+
} // expected-warning@-1{{Non-popped GC frame present at end of function}}
19+
// expected-note@-2{{Non-popped GC frame present at end of function}}
2020

2121
void superfluousPop() {
2222
JL_GC_POP(); // expected-warning{{JL_GC_POP without corresponding push}}

0 commit comments

Comments
 (0)