forked from OSchip/llvm-project
15 lines
1007 B
Plaintext
15 lines
1007 B
Plaintext
# Some targets do not have the .size directive.
|
|
# RUN: %clang -target x86_64-unknown-unknown-elf %S/Inputs/sizeless-symbol.s -c -o %t.o
|
|
# RUN: %lldb %t.o -s %s -o quit | FileCheck %s
|
|
|
|
image lookup --address 1
|
|
# CHECK: Summary: sizeless-symbol.test.tmp.o`sizeful
|
|
image lookup --address 2
|
|
# CHECK: Summary: sizeless-symbol.test.tmp.o`sizeful + 1
|
|
image dump symtab
|
|
# CHECK: Index UserID DSX Type File Address/Value Load Address Size Flags Name
|
|
# CHECK-NEXT:------- ------ --- --------------- ------------------ ------------------ ------------------ ---------- ----------------------------------
|
|
# CHECK-NEXT:[ 0] 1 Code 0x0000000000000003 0x0000000000000000 0x00000000 sizeend
|
|
# CHECK-NEXT:[ 1] 2 Code 0x0000000000000001 0x0000000000000002 0x00000000 sizeful
|
|
# CHECK-NEXT:[ 2] 3 Code 0x0000000000000001 0x0000000000000000 0x00000000 sizeless
|