2012-09-18 20:47:58 +02:00
|
|
|
; RUN: llvm-as < %s > %t
|
2014-06-23 22:27:53 +02:00
|
|
|
; RUN: llvm-nm -without-aliases - < %t | FileCheck %s
|
|
|
|
; RUN: llvm-nm - < %t | FileCheck --check-prefix=WITH %s
|
2012-09-18 20:47:58 +02:00
|
|
|
|
|
|
|
; CHECK-NOT: T a0bar
|
|
|
|
; CHECK-NOT: T a0foo
|
|
|
|
; CHECK: T bar
|
|
|
|
; CHECK: T foo
|
|
|
|
|
|
|
|
; WITH: T a0bar
|
|
|
|
; WITH: T a0foo
|
|
|
|
; WITH: T bar
|
|
|
|
; WITH: T foo
|
|
|
|
|
2015-09-11 05:22:04 +02:00
|
|
|
@a0foo = alias void (), void ()* @foo
|
2012-09-18 20:47:58 +02:00
|
|
|
|
|
|
|
define void @foo() {
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
2015-09-11 05:22:04 +02:00
|
|
|
@a0bar = alias void (), void ()* @bar
|
2012-09-18 20:47:58 +02:00
|
|
|
|
|
|
|
define void @bar() {
|
|
|
|
ret void
|
|
|
|
}
|