OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.dg/] [noncompile/] [incomplete-3.c] - Blame information for rev 378

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

Line No. Rev Author Line
1 298 jeremybenn
/* Both occurrences of "c" should get diagnostics.  PR 12391.  */
2
typedef struct { int a; } b_t;
3
 
4
int foo (void)
5
{
6
  b_t d;
7
  struct b_t *c = &d;   /* { dg-warning "incompatible pointer type" } */
8
  c->a;                 /* { dg-error "incomplete type" } */
9
}

powered by: WebSVN 2.1.0

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