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
|
|
|
|
|
|
|
|
@a0foo = alias void ()* @foo
|
|
|
|
|
|
|
|
define void @foo() {
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
|
|
|
@a0bar = alias void ()* @bar
|
|
|
|
|
|
|
|
define void @bar() {
|
|
|
|
ret void
|
|
|
|
}
|