blob: 668fa15bf49e26a79a6fc6cb1b225d6e2d81b185 [file] [log] [blame]
#as:
#source: diag-wrong-magic-number.s
#source: B.c
#ld: -shared --ctf-variables
#name: Diagnostics - Wrong magic number mixed with valid CTF sections
#warning: CTF section in .* not loaded; its types will be discarded: Buffer does not contain CTF data
.*: +file format .*
Contents of CTF section .ctf:
Header:
Magic number: 0xdff2
Version: 4 \(CTF_VERSION_3\)
#...
Variable section: 0x0 -- 0x17 \(0x18 bytes\)
Type section: 0x18 -- 0x83 \(0x6c bytes\)
String section: .*
Labels:
Data objects:
Function objects:
Variables:
#...
b -> 0x[0-9a-f]*: struct B \(.*
#...
Types:
#...
0x[0-9a-f]*: struct B \(.*
*\[0x0\] \(ID 0x[0-9a-f]*\) \(kind 6\) struct B \(.*
*\[0x0\] \(ID 0x[0-9a-f]*\) \(kind 3\) struct C \* c \(.*
#...
Strings:
0x0:
#...
0x[0-9a-f]*: B
#...