1 ; __stack_chk_guard and __stack_chk_fail should not be internalized.
2 ; RUN: opt < %s -internalize -S | FileCheck %s
3 ; RUN: opt < %s -passes=internalize -S | FileCheck %s
4 ; RUN: opt -mtriple=powerpc64-ibm-aix-xcoff < %s -passes=internalize -S | FileCheck %s --check-prefix=AIX
6 ; CHECK: @__stack_chk_guard = hidden global [8 x i64] zeroinitializer, align 16
7 ; AIX: @__stack_chk_guard = internal global [8 x i64] zeroinitializer, align 16
8 @__stack_chk_guard = hidden global [8 x i64] zeroinitializer, align 16
10 ; CHECK: @__stack_chk_fail = hidden global [8 x i64] zeroinitializer, align 16
11 ; AIX: @__stack_chk_fail = hidden global [8 x i64] zeroinitializer, align 16
12 @__stack_chk_fail = hidden global [8 x i64] zeroinitializer, align 16
14 ; AIX: @__ssp_canary_word = hidden global [8 x i64] zeroinitializer, align 16
15 @__ssp_canary_word = hidden global [8 x i64] zeroinitializer, align 16