linux-packaging-mono/external/llvm/test/Other/llvm-nm-without-aliases.ll
Xamarin Public Jenkins (auto-signing) f32dbaf0b2 Imported Upstream version 5.18.0.225
Former-commit-id: 10196d987d5fc5564b9d3b33b1fdf13190f4d0b5
2018-12-21 19:01:49 +00:00

26 lines
418 B
LLVM

; RUN: llvm-as < %s > %t
; RUN: llvm-nm -without-aliases - < %t | FileCheck %s
; RUN: llvm-nm - < %t | FileCheck --check-prefix=WITH %s
; 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 (), void ()* @foo
define void @foo() {
ret void
}
@a0bar = alias void (), void ()* @bar
define void @bar() {
ret void
}