diff options
Diffstat (limited to 'llvm/test/CodeGen/AArch64/arm64ec-empty-name.ll')
-rw-r--r-- | llvm/test/CodeGen/AArch64/arm64ec-empty-name.ll | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/AArch64/arm64ec-empty-name.ll b/llvm/test/CodeGen/AArch64/arm64ec-empty-name.ll new file mode 100644 index 0000000..c7c9ee5 --- /dev/null +++ b/llvm/test/CodeGen/AArch64/arm64ec-empty-name.ll @@ -0,0 +1,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": |