summaryrefslogtreecommitdiff
path: root/tests/testfile_entry_value.c
blob: d2f232b22793bd9cecc2a0676b2e5d22363b0f2b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// gcc -g -O2 -o entry_value entry_value.c
int __attribute__((noinline, noclone)) foo (int x, int y)
{
  return x + y;
}

int __attribute__((noinline, noclone)) bar (int x, int y)
{
  int z;
  z = foo (x, y);
  z += foo (y, x);
  return z;
}

int
main (int argc, char **argv)
{
  return bar (argc + 1, argc - 1);
}