Jacek Caban | cdda76a | 2024-11-15 15:42:36 | [diff] [blame] | 1 | // REQUIRES: aarch64 |
| 2 | |
| 3 | // Verify that an error is emitted when attempting to export an invalid function name. |
| 4 | // RUN: llvm-mc -filetype=obj -triple=arm64ec-windows %s -o %t.obj |
| 5 | // RUN: llvm-mc -filetype=obj -triple=arm64ec-windows %S/Inputs/loadconfig-arm64ec.s -o %t-loadconfig.obj |
| 6 | // RUN: not lld-link -machine:arm64ec -dll -noentry "-export:?func" %t-loadconfig.obj %t.obj 2>&1 | FileCheck %s |
| 7 | // CHECK: error: Invalid ARM64EC function name '?func' |
| 8 | |
| 9 | // Verify that we can handle an invalid function name in the archive map. |
| 10 | // RUN: llvm-lib -machine:arm64ec -out:%t.lib %t.obj |
| 11 | // RUN: lld-link -machine:arm64ec -dll -noentry %t-loadconfig.obj %t.lib |
| 12 | |
| 13 | .globl "?func" |
| 14 | "?func": |
| 15 | ret |