28 lines · plain
1# REQUIRES: asserts2# RUN: llvm-mc -filetype=obj -triple=x86_64-windows-msvc %s -o %t3# RUN: llvm-jitlink -num-threads=0 -debug-only=jitlink -noexec \4# RUN: -abs var=0xcafef00d %t 2>&1 \5# RUN: | FileCheck %s6#7# Check a local symbol is created for a static variable.8#9# CHECK: Creating graph symbols...10# CHECK: 7: Creating defined graph symbol for COFF symbol "var" in .data (index: 2)11# CHECK-NEXT: 0x0 (block + 0x00000000): size: 0x00000000, linkage: strong, scope: local, dead - var12 13 .text14 15 .def main;16 .scl 2;17 .type 32;18 .endef19 .globl main20 .p2align 4, 0x9021main:22 retq23 24 .data25 .p2align 226var:27 .long 5328