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:
parent
929b72c699
commit
1d6e137f97
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