blob: 12dbd0b11ea4fe8d037107a590bd1f8baff21eab [file] [log] [blame]
Kyle Swenson8d8f6542021-03-15 11:02:55 -06001#!/bin/sh
2
3echo "int foo(void) { char X[200]; return 3; }" | $* -S -x c -c -O0 -fstack-protector - -o - 2> /dev/null | grep -q "%gs"
4if [ "$?" -eq "0" ] ; then
5 echo y
6else
7 echo n
8fi