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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [treelang/] [compile/] [var_defs-2.tree] - Blame information for rev 149

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

Line No. Rev Author Line
1 149 jeremybenn
// { dg-do compile }
2
external_definition int first_nonzero (int arg5, int arg6);
3
 
4
first_nonzero
5
{
6
  automatic int y;
7
  automatic int y;  // { dg-error "Duplicate" }
8
  if (arg5)
9
    {
10
      return arg5;
11
    }
12
  else
13
    {
14
      automatic int j;
15
      j = arg6;
16
      return j;
17
    }
18
  return arg6;
19
}
20
 

powered by: WebSVN 2.1.0

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