diff options
Diffstat (limited to 'test/tools/dsymutil/Inputs/basic2.c')
-rw-r--r-- | test/tools/dsymutil/Inputs/basic2.c | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/test/tools/dsymutil/Inputs/basic2.c b/test/tools/dsymutil/Inputs/basic2.c new file mode 100644 index 0000000..13c6d07 --- /dev/null +++ b/test/tools/dsymutil/Inputs/basic2.c @@ -0,0 +1,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++; +} + |