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