aboutsummaryrefslogtreecommitdiff
path: root/test/cast-bool-char.qbe
diff options
context:
space:
mode:
Diffstat (limited to 'test/cast-bool-char.qbe')
-rw-r--r--test/cast-bool-char.qbe10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/cast-bool-char.qbe b/test/cast-bool-char.qbe
new file mode 100644
index 0000000..81d4eba
--- /dev/null
+++ b/test/cast-bool-char.qbe
@@ -0,0 +1,10 @@
+export
+function w $main() {
+@start.1
+@body.2
+ %.1 =w copy 256
+ %.2 =w extub %.1
+ %.3 =w cnew %.2, 0
+ %.4 =w extub %.3
+ ret %.4
+}