2012-09-19 02:47:58 +08:00
|
|
|
; RUN: llvm-as < %s > %t
|
2014-06-24 04:27:53 +08:00
|
|
|
; RUN: llvm-nm -without-aliases - < %t | FileCheck %s
|
|
|
|
; RUN: llvm-nm - < %t | FileCheck --check-prefix=WITH %s
|
2012-09-19 02:47:58 +08: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 11:22:04 +08:00
|
|
|
@a0foo = alias void (), void ()* @foo
|
2012-09-19 02:47:58 +08:00
|
|
|
|
|
|
|
define void @foo() {
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
2015-09-11 11:22:04 +08:00
|
|
|
@a0bar = alias void (), void ()* @bar
|
2012-09-19 02:47:58 +08:00
|
|
|
|
|
|
|
define void @bar() {
|
|
|
|
ret void
|
|
|
|
}
|