summaryrefslogtreecommitdiff
path: root/tests/testfile_implicit_pointer.c
blob: d7e28a0e23f23227260b6983718acf22ac79a045 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// gcc -g -O2 -o implicit_pointer implicit_pointer.c

static __attribute__((noinline, noclone)) int foo (int i)
{
  int *p = &i;
  return *p;
}

int main (void)
{
  return foo (23) - 23;
}