
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.
7 lines
164 B
Plaintext
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
|