aboutsummaryrefslogtreecommitdiff
path: root/llvm/test/CodeGen/AArch64/arm64ec-empty-name.ll
blob: c7c9ee59e1ccc44046476998c8c1b91bd6b79287 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
; RUN: llc -mtriple=arm64ec-pc-windows-msvc %s -o - | FileCheck %s

; Regression test: Arm64EC needs to look at the first character of a function
; to decide if it will be mangled like a C or C++ function name, which caused
; it to crash for empty function names.
define void @""() {
        ret void
}

define void @""() {
        ret void
}

; CHECK: "#__unnamed":
; CHECK: "#__unnamed.1":