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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [Wstrict-aliasing-bogus-pta-1.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
/* { dg-do compile } */
2
/* { dg-options "-O2 -Wall" } */
3
 
4
struct S { int *p; int *q; };
5
 
6
void foo (struct S *);
7
 
8
int bar (int b)
9
{
10
  struct S s;
11
  int *p;
12
  float f;
13
  foo (&s);
14
  if (b)
15
    p = s.q;
16
  else
17
    p = (int *)&f;
18
  return *p;
19
}

powered by: WebSVN 2.1.0

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