diff options
Diffstat (limited to 'test/Transforms/Internalize/lists.ll')
-rw-r--r-- | test/Transforms/Internalize/lists.ll | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/test/Transforms/Internalize/lists.ll b/test/Transforms/Internalize/lists.ll index 59fe073..3ebf0ed 100644 --- a/test/Transforms/Internalize/lists.ll +++ b/test/Transforms/Internalize/lists.ll @@ -15,7 +15,7 @@ ; Put zed1 and zed2 in the symbol table. If the address is not relevant, we ; internalize them. -; RUN: opt < %s -internalize -internalize-dso-list zed1,zed2 -S | FileCheck --check-prefix=ZED1_AND_ZED2 %s +; RUN: opt < %s -internalize -internalize-dso-list zed1,zed2,zed3 -S | FileCheck --check-prefix=ZEDS %s ; ALL: @i = internal global ; FOO_AND_J: @i = internal global @@ -29,12 +29,18 @@ ; FOO_J_AND_BAR: @j = global @j = global i32 0 -; ZED1_AND_ZED2: @zed1 = linkonce_odr global i32 42 +; ZEDS: @zed1 = internal global i32 42 @zed1 = linkonce_odr global i32 42 -; ZED1_AND_ZED2: @zed2 = internal unnamed_addr global i32 42 +; ZEDS: @zed2 = internal unnamed_addr global i32 42 @zed2 = linkonce_odr unnamed_addr global i32 42 +; ZEDS: @zed3 = linkonce_odr global i32 42 +@zed3 = linkonce_odr global i32 42 +define i32* @get_zed3() { + ret i32* @zed3 +} + ; ALL: define internal void @main() { ; FOO_AND_J: define internal void @main() { ; FOO_AND_BAR: define internal void @main() { |