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