OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.target/] [i386/] [funcspec-4.c] - Blame information for rev 318

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 318 jeremybenn
/* 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 "already specified" } */
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" } */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.