llvm/test/CodeGen/X86/function-alias.ll
NAKAMURA Takumi a9a96c1f37 Move llvm/test/CodeGen/Generic/function-alias.ll to X86. It is incompatible to PECOFF.
FIXME: It may be ELF-generic.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@254685 91177308-0d34-0410-b5e6-96231b3b80d8
2015-12-04 02:00:12 +00:00

13 lines
394 B
LLVM

; RUN: llc < %s | FileCheck %s
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
; "data" constant
@0 = private constant <{ i8, i8 }> <{i8 15, i8 11}>, section ".text"
; function-typed alias
@ud2 = alias void (), bitcast (<{ i8, i8 }>* @0 to void ()*)
; Check that "ud2" is emitted as a function symbol.
; CHECK: .type{{.*}}ud2,@function