1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-01-31 12:41:49 +01:00

[Internalize] Test that __stack_chk_{guard, fail} are not internalized.

r154645 introduced this feature without test. This should have better
coverage now.

llvm-svn: 271853
This commit is contained in:
Davide Italiano 2016-06-05 19:08:54 +00:00
parent 929b72c699
commit 1d6e137f97

View File

@ -0,0 +1,9 @@
; __stack_chk_guard and __stack_chk_fail should not be internalized.
; RUN: opt < %s -internalize -S | FileCheck %s
; RUN: opt < %s -passes=internalize -S | FileCheck %s
; CHECK: @__stack_chk_guard = hidden global [8 x i64] zeroinitializer, align 16
@__stack_chk_guard = hidden global [8 x i64] zeroinitializer, align 16
; CHECK: @__stack_chk_fail = hidden global [8 x i64] zeroinitializer, align 16
@__stack_chk_fail = hidden global [8 x i64] zeroinitializer, align 16