blob: 28bf1ada4a862c810d48a5cc8edff9ddcc67a90b [file] [log] [blame]
Mehdi Aminib2f46d1d2016-09-14 21:05:04 +00001; RUN: llvm-as -o %t1.bc %s
2; RUN: llvm-as -o %t2.bc %p/Inputs/commons.ll
Peter Collingbourne7faa60c2017-04-11 18:12:00 +00003; RUN: llvm-lto2 run %t1.bc -r=%t1.bc,x,l %t2.bc -r=%t2.bc,x,pl -o %t.out -save-temps
Mehdi Aminib2f46d1d2016-09-14 21:05:04 +00004; RUN: llvm-dis -o - %t.out.0.0.preopt.bc | FileCheck %s
5
6; A strong definition should override the common
Sean Fertile39770ca2017-11-04 01:54:20 +00007; CHECK: @x = global i32 42, align 4
Mehdi Aminib2f46d1d2016-09-14 21:05:04 +00008
9target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
10target triple = "x86_64-unknown-linux-gnu"
11
12@x = common global i16 0, align 2