[llvm-commits] [hlvm] r38305 - /hlvm/trunk/test/invalid/blockresult.hlx

Reid Spencer reid at x10sys.com
Sat Jul 7 17:02:10 PDT 2007


Author: reid
Date: Sat Jul  7 19:02:09 2007
New Revision: 38305

URL: http://llvm.org/viewvc/llvm-project?rev=38305&view=rev
Log:
Add a test to ensure that blocks without results generate an error when the
containing scope requires a result.

Added:
    hlvm/trunk/test/invalid/blockresult.hlx

Added: hlvm/trunk/test/invalid/blockresult.hlx
URL: http://llvm.org/viewvc/llvm-project/hlvm/trunk/test/invalid/blockresult.hlx?rev=38305&view=auto

==============================================================================
--- hlvm/trunk/test/invalid/blockresult.hlx (added)
+++ hlvm/trunk/test/invalid/blockresult.hlx Sat Jul  7 19:02:09 2007
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<hlvm xmlns="http://hlvm.org/src/hlvm/Reader/XML/HLVM.rng" pubid="http://hlvm.org/src/hlvm/test/xml2xml/loop.hlx">
+  <bundle id="loop">
+    <constant id="0" type="s32">
+      <dec>0</dec>
+    </constant>
+    <constant id="1" type="s32">
+      <dec>1</dec>
+    </constant>
+    <program id="loop">
+      <block>
+        <result>
+          <select>
+            <ne>
+              <ref id="1"/>
+              <ref id="0"/>
+            </ne>
+            <block><ref id="0"/></block>
+            <block><ref id="1"/></block>
+          </select>
+        </result>
+        <ret/>
+      </block>
+    </program>
+  </bundle>
+</hlvm>





More information about the llvm-commits mailing list