llvm-project/llvm/test/tools/llvm-lib/arm64ec-invalid-name.test
Jacek Caban a9d94834cd
[llvm-lib][llvm-dlltool] Fix handling of invalid ARM64EC function names (#116250)
This is a follow-up to #115567. Emit an error for invalid function
names, similar to MSVC's `lib.exe` behavior.

Returning an error from `writeImportLibrary` exposed bugs in error
handling by its callers, which have been addressed in this patch.
2024-11-15 16:14:37 +01:00

7 lines
164 B
Plaintext

; RUN: not llvm-lib -machine:arm64ec -def:%s -out:%t.lib 2>&1 | FileCheck %s
; CHECK: Invalid ARM64EC function name '?func'
LIBRARY test.dll
EXPORTS
?func