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

Subversion Repositories openrisc

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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 689 jeremybenn
/* { dg-do compile } */
2
/* { dg-options "-fdump-tree-optimized" } */
3
/* { dg-skip-if "" { *-*-* } { "-fno-fat-lto-objects" } { "" } } */
4
 
5
static const unsigned int foo = 1;
6
unsigned int test( void )
7
{
8
  const volatile unsigned int *bar = &foo;
9
  return ( *bar );
10
}
11
 
12
/* { dg-final { scan-tree-dump-not "return 1" "optimized" } } */
13
/* { dg-final { cleanup-tree-dump "optimized" } } */

powered by: WebSVN 2.1.0

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