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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.dg/] [c99-array-lval-6.c] - Blame information for rev 328

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

Line No. Rev Author Line
1 298 jeremybenn
/* PR c/12446 */
2
/* Origin: Keith Thompson <kst@cts.com> */
3
 
4
/* { dg-do compile } */
5
/* { dg-options "-std=iso9899:1999 -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 "non-lvalue" "array not decaying to lvalue" } */
15
}

powered by: WebSVN 2.1.0

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