File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
tests/assembly-llvm/stack-protector Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -310,6 +310,8 @@ pub fn test16() {
310310// CHECK-LABEL: test18{{:|\[}}
311311#[ no_mangle]
312312pub unsafe extern "C" fn test18 ( ) -> i32 {
313+ // CHECK-DAG: .seh_endprologue
314+
313315 let mut a: i32 = 0 ;
314316
315317 except ( & mut a as * mut i32 ) ;
@@ -322,11 +324,15 @@ pub unsafe extern "C" fn test18() -> i32 {
322324 // strong-NOT: __security_check_cookie
323325 // none-NOT: __security_check_cookie
324326 // missing-NOT: __security_check_cookie
327+
328+ // CHECK-DAG: .seh_endproc
325329}
326330
327331// CHECK-LABEL: test19{{:|\[}}
328332#[ no_mangle]
329333pub unsafe extern "C" fn test19 ( ) -> i32 {
334+ // CHECK-DAG: .seh_endprologue
335+
330336 let mut c = Pair { a : 0 , b : 0 } ;
331337
332338 except ( & mut c. a as * mut i32 ) ;
@@ -339,6 +345,8 @@ pub unsafe extern "C" fn test19() -> i32 {
339345 // strong-NOT: __security_check_cookie
340346 // none-NOT: __security_check_cookie
341347 // missing-NOT: __security_check_cookie
348+
349+ // CHECK-DAG: .seh_endproc
342350}
343351
344352// CHECK-LABEL: test20{{:|\[}}
You can’t perform that action at this time.
0 commit comments