2014-06-28 02:19:56 +08:00
|
|
|
; RUN: llvm-as < %s | llvm-dis | FileCheck %s
|
|
|
|
|
|
|
|
$f = comdat any
|
|
|
|
; CHECK: $f = comdat any
|
|
|
|
|
|
|
|
$f2 = comdat any
|
|
|
|
; CHECK-NOT: f2
|
|
|
|
|
2015-01-07 06:55:16 +08:00
|
|
|
@v = global i32 0, comdat($f)
|
|
|
|
; CHECK: @v = global i32 0, comdat($f)
|
2014-06-28 02:19:56 +08:00
|
|
|
|
2015-09-11 11:22:04 +08:00
|
|
|
@a = alias i32, i32* @v
|
|
|
|
; CHECK: @a = alias i32, i32* @v{{$}}
|
2014-07-11 00:26:10 +08:00
|
|
|
|
2015-01-07 06:55:16 +08:00
|
|
|
define void @f() comdat($f) {
|
2014-06-28 02:19:56 +08:00
|
|
|
ret void
|
|
|
|
}
|
2015-01-07 06:55:16 +08:00
|
|
|
; CHECK: define void @f() comdat {
|
2014-07-13 12:56:11 +08:00
|
|
|
|
|
|
|
$i = comdat largest
|
2015-01-07 06:55:16 +08:00
|
|
|
@i = internal global i32 0, comdat($i)
|