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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.dg/] [profile-generate-1.c] - Rev 154

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

/* Bug 16325.  */
/* { dg-options "-O -fprofile-generate" } */
 
extern void abort (void);
 
int *p1;
int *p2;
int *p3;
 
int ga = 100;
 
int
sub (int i, int j)
{
  int k;
  int l;
  int m;
  int n;
  p1 = &k;
  p2 = &l;
  p3 = &m;
  k = 20;
  l = 30;
  m = 40;
  n = i / j;
  return n + ga;
}
 
int
main(void)
{
  if (sub (99, 33) != 103)
    abort ();
  return 0;
}
 
/* { dg-final { cleanup-coverage-files } } */
 

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

powered by: WebSVN 2.1.0

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