OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.dg/] [alias-9.c] - Blame information for rev 154

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
/* { dg-do compile } */
2
/* { dg-options "-Wstrict-aliasing -O2" } */
3
 
4
int a[2];
5
 
6
double *foo1(void)
7
{
8
  return (double *)a; /* { dg-warning "strict-aliasing" } */
9
}
10
 
11
double *foo2(void)
12
{
13
  return (double *)&a[0]; /* { dg-warning "strict-aliasing" } */
14
}
15
 
16
_Complex x;
17
int *bar(void)
18
{
19
  return (int *)&__imag x; /* { dg-warning "strict-aliasing" } */
20
}

powered by: WebSVN 2.1.0

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