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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [c90-array-lval-6.c] - Blame information for rev 801

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

Line No. Rev Author Line
1 689 jeremybenn
/* PR c/12446 */
2
/* Origin: Keith Thompson <kst@cts.com> */
3
 
4
/* { dg-do compile } */
5
/* { dg-options "-std=iso9899:1990 -pedantic-errors" } */
6
 
7
 
8
struct s { char c[1]; };
9
 
10
extern struct s foo(void);
11
 
12
void bar(void)
13
{
14
  char *ptr = foo().c; /* { dg-bogus "warning" "warning in place of error" } */
15
}
16
/* { dg-error "non-lvalue" "array not decaying to lvalue" { target *-*-* } 14 } */

powered by: WebSVN 2.1.0

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