aboutsummaryrefslogtreecommitdiffstats
path: root/test/BugPoint/misopt-basictest.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/BugPoint/misopt-basictest.ll')
-rw-r--r--test/BugPoint/misopt-basictest.ll14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/BugPoint/misopt-basictest.ll b/test/BugPoint/misopt-basictest.ll
new file mode 100644
index 0000000..66cc53f
--- /dev/null
+++ b/test/BugPoint/misopt-basictest.ll
@@ -0,0 +1,14 @@
+; RUN: llvm-upgrade < %s > %t1.ll
+; RUN: bugpoint %t1.ll -dce -bugpoint-deletecalls -simplifycfg
+
+%.LC0 = internal global [13 x sbyte] c"Hello World\0A\00"
+
+implementation
+
+declare int %printf(sbyte*, ...)
+
+int %main() {
+ call int(sbyte*, ...)* %printf( sbyte* getelementptr ([13 x sbyte]* %.LC0, long 0, long 0) )
+ ret int 0
+}
+