summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/verbose-asm.c
blob: 7d105d31cda9c3887dec46216fe5b87c7f690a2e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/* Test whether -fverbose-asm works.  */
/* { dg-do compile } */
/* { dg-options "-fverbose-asm" } */

void foo (int *x)
{
  (*x)++;
}

int bar (int *y)
{
  int a, b;
  b = 10;
  a = 26;
  foo (&a);
  a += 10;
  foo (&a);
  *y--;
  return b;
}
   
int
main (int argc, char *argv [])
{
  bar (&argc);
  return 0;
}