summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/compile/20030418-1.c
blob: f6d5a4af51c86451ec2632354bf7fa8bdd400d56 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* PR optimization/7675 */
/* Contributed by Volker Reichelt */

/* Verify that we don't put automatic variables
   in registers too early.  */

extern int dummy (int *);

void foo(int i)
{
  int j=i;

  void bar() { int x=j, y=i; }

  dummy(&i);
}