URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.dg/] [gnu99-init-2.c] - Rev 867
Go to most recent revision | Compare with Previous | Blame | View Log
/* Test for designated initializers: array designators must be of integer type. Test for index ranges (GNU extension). */ /* Origin: Joseph Myers <jsm@polyomino.org.uk> */ /* { dg-do compile } */ /* { dg-options "-std=gnu99" } */ int a[] = { [(void *)0 ... 0] = 1 }; /* { dg-bogus "warning" "warning in place of error" } */ /* { dg-error "integer type|near init" "pointer designator" { target *-*-* } 7 } */ int b[] = { [0 ... (void *)0] = 1 }; /* { dg-bogus "warning" "warning in place of error" } */ /* { dg-error "integer type|near init" "pointer designator" { target *-*-* } 10 } */
Go to most recent revision | Compare with Previous | Blame | View Log