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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.dg/] [tree-ssa/] [foldcast-1.c] - Blame information for rev 853

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

Line No. Rev Author Line
1 149 jeremybenn
/* { dg-do "compile" } */
2
/* { dg-options "-fdump-tree-original" } */
3
 
4
typedef int ssize_t __attribute__((mode(pointer)));
5
ssize_t foo (ssize_t x)
6
{
7
  return (ssize_t)(char *)x;
8
}
9
 
10
char *bar (char *x)
11
{
12
  return (char *)(ssize_t)x;
13
}
14
 
15
/* { dg-final { scan-tree-dump-times "return x;" 2 "original" } } */
16
/* { dg-final { cleanup-tree-dump "original" } } */

powered by: WebSVN 2.1.0

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