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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [tree-ssa/] [pr33593.C] - Blame information for rev 715

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

Line No. Rev Author Line
1 693 jeremybenn
/* { dg-do compile } */
2
/* { dg-options "-O1 -fnon-call-exceptions -fdump-tree-optimized" } */
3
 
4
#include 
5
 
6
void foo (int) { printf ("Bar\n"); }
7
 
8
int
9
main (void)
10
{
11
  int a = 1 / 0;        // { dg-warning "division by zero" }
12
  printf ("Foo\n");
13
  foo (a);
14
}
15
 
16
// The expression 1 / 0 should not be propagated into the call to foo() if it
17
// may trap.
18
// { dg-final { scan-tree-dump-times "foo \\(1 \\/ 0\\)" 0 "optimized" } }
19
// { 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.