view test/MC/ELF/size.s @ 120:1172e4bd9c6f

update 4.0.0
author mir3636
date Fri, 25 Nov 2016 19:14:25 +0900
parents afa8332a0e37
children c2174574ed3a
line wrap: on
line source

// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux < %s | llvm-readobj -t | FileCheck %s

foo:
bar = .
	.size	foo, . - bar + 42

// CHECK:       Symbol {
// CHECK:         Name: foo
// CHECK-NEXT:    Value: 0x0
// CHECK-NEXT:    Size: 42
// CHECK-NEXT:    Binding: Local
// CHECK-NEXT:    Type: None
// CHECK-NEXT:    Other: 0
// CHECK-NEXT:    Section: .text
// CHECK-NEXT:  }