https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68949
--- Comment #3 from Wouter van Kesteren <woutershep at gmail dot com> --- The program is (imo atleast) supposed to exit with success (0), not with 1, which is a failure. So i would say it is NOT working in gcc6 based on the output you showed.