2014-12-08 14:44:38 +01:00
|
|
|
; RUN: llvm-link %s -S -o - | FileCheck %s
|
2013-09-16 03:08:15 +02:00
|
|
|
|
2014-12-08 14:44:38 +01:00
|
|
|
@g1 = global void()* @f2
|
2015-11-29 15:53:06 +01:00
|
|
|
; CHECK-DAG: @g1 = global void ()* @f2
|
2013-09-16 03:08:15 +02:00
|
|
|
|
2014-12-08 14:44:38 +01:00
|
|
|
@p1 = global i8 42
|
2015-11-29 15:53:06 +01:00
|
|
|
; CHECK-DAG: @p1 = global i8 42
|
2014-12-08 14:44:38 +01:00
|
|
|
|
|
|
|
@p2 = internal global i8 43
|
2015-11-29 15:53:06 +01:00
|
|
|
; CHECK-DAG: @p2 = internal global i8 43
|
2014-12-08 14:44:38 +01:00
|
|
|
|
|
|
|
define void @f1() prologue i8* @p1 {
|
|
|
|
ret void
|
|
|
|
}
|
2015-11-29 15:53:06 +01:00
|
|
|
; CHECK-DAG: define void @f1() prologue i8* @p1 {
|
2014-12-08 14:44:38 +01:00
|
|
|
|
|
|
|
define internal void @f2() prologue i8* @p2 {
|
2013-09-16 03:08:15 +02:00
|
|
|
ret void
|
|
|
|
}
|
2014-12-08 14:44:38 +01:00
|
|
|
|
2015-11-29 15:53:06 +01:00
|
|
|
; CHECK-DAG: define internal void @f2() prologue i8* @p2 {
|