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/] [pr34457-1.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/34457 */
2
/* { dg-do compile } */
3
/* { dg-require-effective-target trampolines } */
4
/* { dg-options "--combine -O2" } */
5
/* { dg-additional-sources "pr34457-2.c" } */
6
 
7
 
8
typedef __SIZE_TYPE__ size_t;
9
extern int printf (const char *, ...);
10
extern void *memset (void *, int, size_t);
11
 
12
int bar (int (*)(), int, void *);
13
 
14
int
15
main(int argc, char **argv)
16
{
17
  struct s { int a; char b[argc]; };
18
  int nested (struct s x) { return x.a + sizeof(x); }
19
  struct s t;
20
  memset (&t, 0, sizeof(t));
21
  t.a = 123;
22
  printf("%d\n", bar (nested, argc, &t));
23
  return 0;
24
}

powered by: WebSVN 2.1.0

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