aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/Transforms/Inline/Makefile12
-rw-r--r--test/Transforms/Inline/basictest.ll11
2 files changed, 23 insertions, 0 deletions
diff --git a/test/Transforms/Inline/Makefile b/test/Transforms/Inline/Makefile
new file mode 100644
index 0000000000..e6067bb43a
--- /dev/null
+++ b/test/Transforms/Inline/Makefile
@@ -0,0 +1,12 @@
+
+LEVEL = ../../../..
+include $(LEVEL)/test/Makefile.tests
+
+TESTS := $(wildcard *.ll)
+
+all:: $(addprefix Output/, $(TESTS:%.ll=%.ibc))
+
+Output/%.ibc: %.ll Output/.dir $(LOPT)
+ ($(LAS) < $< | $(LOPT) -inline -q -f -o $@) || \
+ ( rm -f $@; $(FAILURE) $@ )
+
diff --git a/test/Transforms/Inline/basictest.ll b/test/Transforms/Inline/basictest.ll
new file mode 100644
index 0000000000..ba79998c1b
--- /dev/null
+++ b/test/Transforms/Inline/basictest.ll
@@ -0,0 +1,11 @@
+
+
+int %func(int %i) {
+ ret int %i
+}
+
+int %main(int %argc) {
+ %X = call int %func(int 7)
+ %Y = add int %X, %argc
+ ret int %Y
+}