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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.dg/] [noncompile/] [incomplete-3.c] - Blame information for rev 867

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

Line No. Rev Author Line
1 149 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.