aboutsummaryrefslogtreecommitdiffstats
path: root/test/tools/dsymutil/Inputs/basic2.c
blob: 13c6d07c2a0856ad84895ae0c7900925cd140112 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/* For compilation instructions see basic1.c. */

static int baz = 42;
static int private_int;
extern volatile int val;
int unused_data = 1;

int bar(int);

void unused1() {
  bar(baz);
}

static int inc() {
  return ++private_int;
}

__attribute__((noinline))
int foo(int arg) {
  return bar(arg+val) + inc() + baz++;
}