2 ## Test that ., $, space and " can be used by symbol names in expressions.
4 # RUN: llvm-mc -filetype=obj -triple=x86_64 /dev/null -o %t.o
5 # RUN: ld.lld -T %s %t.o -o %t
6 # RUN: llvm-readelf -s %t | FileCheck %s
8 # CHECK: Value Size Type Bind Vis Ndx Name
9 # CHECK-DAG: 0000000000000000 0 NOTYPE GLOBAL DEFAULT ABS a1
10 # CHECK-DAG: 0000000000000000 0 NOTYPE GLOBAL DEFAULT ABS a0
11 # CHECK-DAG: 0000000000000003 0 NOTYPE GLOBAL DEFAULT ABS a 2
12 # CHECK-DAG: 0000000000000004 0 NOTYPE GLOBAL DEFAULT ABS a 3
14 a0 = DEFINED(.TOC.) ? .TOC. : 0;
15 "a1" = DEFINED(__global_pointer$) ? __global_pointer$ : 0;
16 "a 2" = DEFINED("a1") ? "a1" + 3 : 0;