binutils-gdb/ld/testsuite/ld-ctf/nonrepresentable.d
Alan Modra db120fb808 Adjust ld ctf test for 32-bit targets
powerpc-linux, and I suspect other 32-bit targets, report "aligned at
0x4" for this test.

	* testsuite/ld-ctf/nonrepresentable.d: Accept any alignment.
2022-03-04 00:28:07 +10:30

27 lines
465 B
Makefile

#as:
#source: nonrepresentable-1.c
#source: nonrepresentable-2.c
#objdump: --ctf
#ld: -shared
#name: Nonrepresentable types
.*: +file format .*
Contents of CTF section .ctf:
Header:
Magic number: 0xdff2
Version: 4 \(CTF_VERSION_3\)
#...
Function objects:
#...
foo -> 0x[0-9]*: \(kind 5\) int \(\*\) \(\(nonrepresentable type.*\)\) \(aligned at .*\)
#...
Types:
#...
0x[0-9a-f]*: \(kind 0\) \(nonrepresentable type.*\)
#...
Strings:
#...