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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.c-torture/] [execute/] [mayalias-3.c] - Blame information for rev 801

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

Line No. Rev Author Line
1 688 jeremybenn
typedef struct __attribute__((__may_alias__)) { short x; } test;
2
 
3
test *p;
4
 
5
int g(int *a)
6
{
7
 p = (test*)a;
8
}
9
 
10
int f()
11
{
12
  int a;
13
  g(&a);
14
  a = 10;
15
  test s={1};
16
  *p=s;
17
  return a;
18
}
19
 
20
int main() {
21
  if (f() == 10)
22
    __builtin_abort();
23
  return 0;
24
}
25
 
26
 

powered by: WebSVN 2.1.0

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