Jason Baron | bf5438fc | 2010-09-17 11:09:00 -0400 | [diff] [blame] | 1 | #!/bin/sh |
Jonathan Neuschäfer | df0a92c | 2011-06-16 00:17:46 +0200 | [diff] [blame] | 2 | # Test for gcc 'asm goto' support |
Jason Baron | bf5438fc | 2010-09-17 11:09:00 -0400 | [diff] [blame] | 3 | # Copyright (C) 2010, Jason Baron <jbaron@redhat.com> |
4 | |||||
Ingo Molnar | d6dad19 | 2010-09-24 09:12:25 +0200 | [diff] [blame] | 5 | echo "int main(void) { entry: asm goto (\"\"::::entry); return 0; }" | $@ -x c - -c -o /dev/null >/dev/null 2>&1 && echo "y" |