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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.dg/] [bitfld-13.c] - Blame information for rev 149

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
/* Test invalid bit-field types: bug 18498.  */
2
/* { dg-do compile } */
3
/* { dg-options "" } */
4
 
5
int
6
main(void)
7
{
8
  struct X {
9
    int s[20] : 1; /* { dg-error "error: bit-field 's' has invalid type" } */
10
    int *p : 2; /* { dg-error "error: bit-field 'p' has invalid type" } */
11
    int (*f)(float) : 3; /* { dg-error "error: bit-field 'f' has invalid type" } */
12
  } x;
13
  return 0;
14
}

powered by: WebSVN 2.1.0

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