Index: test/Transforms/NaCl/pnacl-abi-simplify.ll |
diff --git a/test/Transforms/NaCl/pnacl-abi-simplify.ll b/test/Transforms/NaCl/pnacl-abi-simplify.ll |
new file mode 100644 |
index 0000000000000000000000000000000000000000..6b10155983f468290e9d88df91100d4730ff7575 |
--- /dev/null |
+++ b/test/Transforms/NaCl/pnacl-abi-simplify.ll |
@@ -0,0 +1,11 @@ |
+; RUN: opt %s -pnacl-abi-simplify-preopt -pnacl-abi-simplify-postopt -S \ |
+; RUN: | FileCheck %s |
+ |
+target datalayout = "p:32:32:32" |
+ |
+; Check that the "tail" attribute is preserved on calls. |
+define void @tail_call() { |
+ tail call void @tail_call() |
+ ret void |
+} |
+; CHECK: tail call void @tail_call() |