brintos

brintos / llvm-project-archived public Read only

0
0
Text · 706 B · f0373e1 Raw
18 lines · plain
1# REQUIRES: x862## Test that ., $, space and " can be used by symbol names in expressions.3 4# RUN: llvm-mc -filetype=obj -triple=x86_64 /dev/null -o %t.o5# RUN: ld.lld -T %s %t.o -o %t6# RUN: llvm-readelf -s %t | FileCheck %s7 8# CHECK:      Value            Size Type   Bind   Vis     Ndx Name9# CHECK-DAG:  0000000000000000    0 NOTYPE GLOBAL DEFAULT ABS a110# CHECK-DAG:  0000000000000000    0 NOTYPE GLOBAL DEFAULT ABS a011# CHECK-DAG:  0000000000000003    0 NOTYPE GLOBAL DEFAULT ABS a 212# CHECK-DAG:  0000000000000004    0 NOTYPE GLOBAL DEFAULT ABS a 313 14a0 = DEFINED(.TOC.) ? .TOC. : 0;15"a1" = DEFINED(__global_pointer$) ? __global_pointer$ : 0;16"a 2" = DEFINED("a1") ? "a1" + 3 : 0;17"a 3" = "a 2" + 1;18