2019-04-28 00:12:14 +08:00
|
|
|
; RUN: llvm-as %s -o %t
|
|
|
|
; 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
|
|
|
|
}
|