repo.or.cz
/
llvm-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
CWG 1394: Incomplete types as parameters of deleted functions
[llvm-project.git]
/
llvm
/
test
/
Object
/
wasm-bad-data-symbol.yaml
blob
a30b2fe04ac5c2d31d8cc6502e4b11650470161d
1
# RUN: yaml2obj %s | not llvm-objdump -s - 2>&1 | FileCheck %s
2
3
# Check that data symbols must have and offset that is within the
4
# bounds of the containing segment
5
6
# CHECK: invalid data symbol offset: `foo` (offset: 42 segment size: 5)
7
8
--- !WASM
9
FileHeader:
10
Version: 0x00000001
11
Sections:
12
- Type: DATA
13
Segments:
14
- SectionOffset: 0
15
InitFlags: 0
16
Offset:
17
Opcode: I32_CONST
18
Value: 0
19
Content: '6401020304'
20
- Type: CUSTOM
21
Name: linking
22
Version: 2
23
SymbolTable:
24
- Index: 0
25
Kind: DATA
26
Name: foo
27
Flags: [ ]
28
Segment: 0
29
Offset: 42
30
Size: 1
31
...