zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

blob e23578f5 (628B) - Raw


      1 # REQUIRES: x86
      2 # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o
      3 # RUN: ld.lld %t.o --gc-sections -shared -o %t1
      4 # RUN: ld.lld %t.o -shared -o %t2
      5 # RUN: llvm-readobj -symbols %t1 | FileCheck %s --check-prefix=GC
      6 # RUN: llvm-readobj -symbols %t2 | FileCheck %s --check-prefix=NOGC
      7 
      8 # NOGC:      Symbol {
      9 # NOGC:        Name: patatino
     10 # NOGC-NEXT:   Value: 0x0
     11 # NOGC-NEXT:   Size: 0
     12 # NOGC-NEXT:   Binding: Local
     13 # NOGC-NEXT:   Type: TLS
     14 # NOGC-NEXT:   Other: 0
     15 # NOGC-NEXT:   Section: .tbss
     16 # NOGC-NEXT: }
     17 
     18 # GC-NOT: tbss
     19 
     20 .section .tbss,"awT",@nobits
     21 patatino:
     22   .long 0
     23   .section .noalloc,""
     24   .quad patatino