2017-07-11 02:36:34 +08:00
|
|
|
; RUN: llc -filetype=obj %s -o - | obj2yaml | FileCheck %s
|
|
|
|
; PR33624
|
|
|
|
|
|
|
|
source_filename = "ws.c"
|
|
|
|
target datalayout = "e-m:e-p:32:32-i64:64-n32:64-S128"
|
2018-05-11 01:49:11 +08:00
|
|
|
target triple = "wasm32-unknown-unknown"
|
2017-07-11 02:36:34 +08:00
|
|
|
|
|
|
|
%struct.bd = type { i8 }
|
|
|
|
|
|
|
|
@gBd = hidden global [2 x %struct.bd] [%struct.bd { i8 1 }, %struct.bd { i8 2 }], align 1
|
|
|
|
|
2017-09-21 03:03:35 +08:00
|
|
|
; CHECK: - Type: DATA
|
|
|
|
; CHECK: Content: '0102'
|
|
|
|
|
2018-04-27 02:15:32 +08:00
|
|
|
; CHECK: SymbolTable:
|
2018-02-23 13:08:34 +08:00
|
|
|
; CHECK-NEXT: - Index: 0
|
|
|
|
; CHECK-NEXT: Kind: DATA
|
|
|
|
; CHECK-NEXT: Name: gBd
|
2017-12-14 06:02:25 +08:00
|
|
|
; CHECK-NEXT: Flags: [ VISIBILITY_HIDDEN ]
|
2018-02-23 13:08:34 +08:00
|
|
|
; CHECK-NEXT: Segment: 0
|
|
|
|
; CHECK-NEXT: Size: 2
|
2019-03-06 10:00:22 +08:00
|
|
|
; CHECK-NEXT: SegmentInfo:
|
2017-09-21 03:03:35 +08:00
|
|
|
; CHECK-NEXT: - Index: 0
|
|
|
|
; CHECK-NEXT: Name: .data
|
2019-01-16 09:34:48 +08:00
|
|
|
; CHECK-NEXT: Alignment: 0
|
2017-12-14 06:02:25 +08:00
|
|
|
; CHECK-NEXT: Flags: [ ]
|
2017-09-21 03:03:35 +08:00
|
|
|
; CHECK-NEXT: ...
|