31 lines · plain
1// Check that ".lto_discard" ignores symbol assignments and attribute changes2// for the specified symbols.3// RUN: llvm-mc -triple x86_64-pc-linux-gnu < %s | FileCheck %s4 5// Check that ".lto_discard" only accepts identifiers.6// RUN: not llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu --defsym ERR=1 %s 2>&1 |\7// RUN: FileCheck %s --check-prefix=ERR8 9// CHECK-NOT: .weak foo10// CHECK-NOT: foo:11// CHECK: .weak bar12// CHECK: bar:13// CHECK: .byte 214 15.lto_discard foo16.weak foo17foo:18 .byte 119 20.lto_discard21.weak bar22bar:23 .byte 224 25 26.ifdef ERR27.text28# ERR: {{.*}}.s:[[#@LINE+1]]:14: error: expected identifier29.lto_discard 130.endif31