diff --git a/test/Transforms/Internalize/stackguard.ll b/test/Transforms/Internalize/stackguard.ll new file mode 100644 index 00000000000..e9dc6cc2365 --- /dev/null +++ b/test/Transforms/Internalize/stackguard.ll @@ -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