summaryrefslogtreecommitdiff
path: root/gcc/testsuite/c-c++-common/guality/pr43141.c
blob: e6fe79a0efc3a9880a4e00e6e5a81233122dbbcf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* { dg-do run } */
/* { dg-options "-g" } */

int i;
static int f(int) __attribute ((noinline));
static int f(int x)
{
  return i;
}

int main()
{
  return f(42);
}

/* { dg-final { gdb-test 8 "sizeof (x)" "sizeof (int)" } } */