aboutsummaryrefslogtreecommitdiffstats
path: root/test/Analysis/BasicAA/gcsetest.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/Analysis/BasicAA/gcsetest.ll')
-rw-r--r--test/Analysis/BasicAA/gcsetest.ll10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/Analysis/BasicAA/gcsetest.ll b/test/Analysis/BasicAA/gcsetest.ll
index 0cc0af2..4af5cc1 100644
--- a/test/Analysis/BasicAA/gcsetest.ll
+++ b/test/Analysis/BasicAA/gcsetest.ll
@@ -34,3 +34,13 @@ out:
ret int %X
}
+declare void %external()
+
+int %test3() {
+ %X = alloca int
+ store int 7, int* %X
+ call void %external()
+ %V = load int* %X
+ ret int %V
+}
+