new test: return small struct
authorSergei Trofimovich <slyfox@gentoo.org>
Sat, 17 Feb 2018 18:53:02 +0000 (18:53 +0000)
committerSergei Trofimovich <slyfox@gentoo.org>
Sat, 17 Feb 2018 18:53:02 +0000 (18:53 +0000)
commit45da2fcbcd0ecaba673275d22b04fac3e4376e22
tree1ded6dcd528c4eb97870c649cc36f1b69efb7fd7
parent9429968b828de8775cfd7f139374888943f2186a
new test: return small struct

The bug originally was discovered in https://bugs.gentoo.org/634190
where complicated callback was returning invalid data on ia64.

This change adds minimal reproducer that fails only on ia64 as:

FAIL: libffi.call/struct10.c -W -Wall -Wno-psabi -O0 execution test
FAIL: libffi.call/struct10.c -W -Wall -Wno-psabi -O2 execution test
FAIL: libffi.call/struct10.c -W -Wall -Wno-psabi -O3 execution test
FAIL: libffi.call/struct10.c -W -Wall -Wno-psabi -Os execution test

Test passes on amd64. The fix is in the following commit.

Bug: https://bugs.gentoo.org/634190
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
testsuite/Makefile.am
testsuite/libffi.call/struct10.c [new file with mode: 0644]