summaryrefslogblamecommitdiff
path: root/scripts/gcc-goto.sh
blob: 8e82424be7aa1d1709d5f1829957863b4c6e5e74 (plain) (tree)
1
2
3
4
5




                                                                                                                            
#!/bin/sh
# Test for gcc 'asm goto' suport
# Copyright (C) 2010, Jason Baron <jbaron@redhat.com>

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