aboutsummaryrefslogtreecommitdiff
path: root/llvm/tools/inline0/t2.c
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/tools/inline0/t2.c')
-rw-r--r--llvm/tools/inline0/t2.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/llvm/tools/inline0/t2.c b/llvm/tools/inline0/t2.c
new file mode 100644
index 0000000..f675b50b
--- /dev/null
+++ b/llvm/tools/inline0/t2.c
@@ -0,0 +1,10 @@
+int foo(int a, int b);
+
+int goo(int c, int d) {
+ int s= 0;
+ for(int i = c; i < d; ++i)
+ s+=foo(i, d);
+ for(int i = c*s; i < d*s*3; ++i)
+ s+=i*3;
+ return s;
+}