aboutsummaryrefslogtreecommitdiffstats
path: root/test/tools/dsymutil/Inputs/basic3.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/tools/dsymutil/Inputs/basic3.c')
-rw-r--r--test/tools/dsymutil/Inputs/basic3.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/test/tools/dsymutil/Inputs/basic3.c b/test/tools/dsymutil/Inputs/basic3.c
new file mode 100644
index 0000000..f20998a
--- /dev/null
+++ b/test/tools/dsymutil/Inputs/basic3.c
@@ -0,0 +1,20 @@
+/* For compilation instructions see basic1.c. */
+
+volatile int val;
+
+extern int foo(int);
+
+int unused2() {
+ return foo(val);
+}
+
+static int inc() {
+ return ++val;
+}
+
+__attribute__((noinline))
+int bar(int arg) {
+ if (arg > 42)
+ return inc();
+ return foo(val + arg);
+}