brintos

brintos / llvm-project-archived public Read only

0
0
Text · 696 B · 043d39e Raw
16 lines · plain
1// REQUIRES: aarch642 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.obj5// RUN: llvm-mc -filetype=obj -triple=arm64ec-windows %S/Inputs/loadconfig-arm64ec.s -o %t-loadconfig.obj6// RUN: not lld-link -machine:arm64ec -dll -noentry "-export:?func" %t-loadconfig.obj %t.obj 2>&1 | FileCheck %s7// 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.obj11// RUN: lld-link -machine:arm64ec -dll -noentry %t-loadconfig.obj %t.lib12 13        .globl "?func"14"?func":15        ret16