diff options
Diffstat (limited to 'test/tools/gold/Inputs')
-rw-r--r-- | test/tools/gold/Inputs/comdat.ll | 9 | ||||
-rw-r--r-- | test/tools/gold/Inputs/drop-debug.bc | bin | 0 -> 1152 bytes |
2 files changed, 7 insertions, 2 deletions
diff --git a/test/tools/gold/Inputs/comdat.ll b/test/tools/gold/Inputs/comdat.ll index e9e4704..464aefa 100644 --- a/test/tools/gold/Inputs/comdat.ll +++ b/test/tools/gold/Inputs/comdat.ll @@ -1,7 +1,12 @@ $c2 = comdat any +$c1 = comdat any -@v1 = weak_odr global i32 41, comdat $c2 -define weak_odr protected i32 @f1(i8* %this) comdat $c2 { +; This is only present in this file. The linker will keep $c1 from the first +; file and this will be undefined. +@will_be_undefined = global i32 1, comdat($c1) + +@v1 = weak_odr global i32 41, comdat($c2) +define weak_odr protected i32 @f1(i8* %this) comdat($c2) { bb20: store i8* %this, i8** null br label %bb21 diff --git a/test/tools/gold/Inputs/drop-debug.bc b/test/tools/gold/Inputs/drop-debug.bc Binary files differnew file mode 100644 index 0000000..f9c471f --- /dev/null +++ b/test/tools/gold/Inputs/drop-debug.bc |