summaryrefslogtreecommitdiff
path: root/clang/test/CodeGen/funccall.c
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/CodeGen/funccall.c')
-rw-r--r--clang/test/CodeGen/funccall.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/clang/test/CodeGen/funccall.c b/clang/test/CodeGen/funccall.c
new file mode 100644
index 0000000..9735e34
--- /dev/null
+++ b/clang/test/CodeGen/funccall.c
@@ -0,0 +1,17 @@
+
+static int q;
+
+void foo() {
+ int t = q;
+ q = t + 1;
+}
+int main() {
+ q = 0;
+ foo();
+ q = q - 1;
+
+ return q;
+}
+
+// This is the source that corresponds to funccall.ll
+// RUN: echo foo