PR inline-asm/84742
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / funcspec-4.c
blob025b97dff8e1cee72641647537f4baf174e5a21f
1 /* Test some error conditions with function specific options. */
2 /* { dg-do compile } */
4 /* no fma400 switch */
5 extern void error1 (void) __attribute__((__target__("fma400"))); /* { dg-error "unknown" } */
7 /* Multiple arch switches */
8 extern void error2 (void) __attribute__((__target__("arch=core2,arch=k8"))); /* { dg-error "already specified" } */
10 /* Unknown tune target */
11 extern void error3 (void) __attribute__((__target__("tune=foobar"))); /* { dg-error "bad value" } */
13 /* option on a variable */
14 extern int error4 __attribute__((__target__("sse2"))); /* { dg-warning "ignored" } */