; __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

Test that __stack_chk_{guard, fail} are not internalized.
[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: 0ff597fd157e6f4fc38580e8d64ab130330d2411@271853 91177308-0d34-0410-b5e6-96231b3b80d8
