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