mirror of
https://github.com/RPCS3/llvm.git
synced 2025-03-04 00:29:28 +00:00
[Internalize] Test that __stack_chk_{guard, fail} are not internalized.
r154645 introduced this feature without test. This should have better coverage now. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@271853 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
98090ec9bd
commit
ca2ccc379b
9
test/Transforms/Internalize/stackguard.ll
Normal file
9
test/Transforms/Internalize/stackguard.ll
Normal 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
|
Loading…
x
Reference in New Issue
Block a user