This is speculative since I'm not sure if there's some implicit contract that a variable symbol must not have another variable symbol in its evaluation tree. Downstream bug: https://bugs.chromium.org/p/chromium/issues/detail?id=471146#c23. Test is based on alias.s (removed checks since we just need to know it didn't crash). Differential Revision: https://reviews.llvm.org/D109109
13 lines
273 B
ArmAsm
13 lines
273 B
ArmAsm
// RUN: llvm-mc -triple x86_64-apple-macos %s -filetype=obj | llvm-readobj --symbols - | FileCheck %s
|
|
l_a:
|
|
l_b = l_a + 1
|
|
l_c = l_b
|
|
.long l_c
|
|
|
|
// CHECK: Name: l_a
|
|
// CHECK: Value: 0x0
|
|
// CHECK: Name: l_b
|
|
// CHECK: Value: 0x1
|
|
// CHECK: Name: l_c
|
|
// CHECK: Value: 0x1
|