Debian Codegraph @

gcc/testsuite/gcc.target/i386/funcspec-4.c

raw
1 /* Test some error conditions with function specific options. */
2 /* { dg-do compile } */
3
4 /* no fma400 switch */
5 extern void error1 (void) __attribute__((__target__("fma400"))); /* { dg-error "unknown" } */
6
7 /* Multiple arch switches */
8 extern void error2 (void) __attribute__((__target__("arch=core2,arch=k8"))); /* { dg-error "attribute value 'arch=k8' was already specified in 'target' attribute" } */
9
10 /* Unknown tune target */
11 extern void error3 (void) __attribute__((__target__("tune=foobar"))); /* { dg-error "bad value" } */
12
13 /* option on a variable */
14 extern int error4 __attribute__((__target__("sse2"))); /* { dg-warning "ignored" } */