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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [pr34457-1.c] - Blame information for rev 689

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 689 jeremybenn
/* PR c/34457 */
2
/* { dg-do link } */
3
/* { dg-require-effective-target trampolines } */
4
/* { dg-require-effective-target lto } */
5
/* { dg-options "-flto -O2" } */
6
/* { dg-additional-sources "pr34457-2.c" } */
7
 
8
 
9
typedef __SIZE_TYPE__ size_t;
10
extern int printf (const char *, ...);
11
extern void *memset (void *, int, size_t);
12
 
13
int bar (int (*p)(), int q, void *r) {}
14
 
15
int
16
main(int argc, char **argv)
17
{
18
  struct s { int a; char b[argc]; };
19
  int nested (struct s x) { return x.a + sizeof(x); }
20
  struct s t;
21
  memset (&t, 0, sizeof(t));
22
  t.a = 123;
23
  printf("%d\n", bar (nested, argc, &t));
24
  return 0;
25
}

powered by: WebSVN 2.1.0

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