aboutsummaryrefslogtreecommitdiff
path: root/scripts/gcc-goto.sh
blob: 98cffcb941ea6e319fd4bee04db7f06de379031b (plain)
1
2
3
4
5
#!/bin/sh
# Test for gcc 'asm goto' support
# Copyright (C) 2010, Jason Baron <jbaron@redhat.com>

echo "int main(void) { entry: asm goto (\"\"::::entry); return 0; }" | $@ -x c - -c -o /dev/null >/dev/null 2>&1 && echo "y"