aboutsummaryrefslogtreecommitdiff
path: root/tests/unreachable
diff options
context:
space:
mode:
authorKimplul <kimi.h.kuparinen@gmail.com>2024-08-18 20:48:27 +0300
committerKimplul <kimi.h.kuparinen@gmail.com>2024-08-18 21:07:11 +0300
commit4af5176d6377958a457da3e5f671ce21540fad70 (patch)
tree04e7f2fe66e7c2e05f6a47b0c8108cf407ee6c93 /tests/unreachable
parentcdbe058f69f1db9c552e1b4a1ec5f94c12fc48a2 (diff)
downloadqbt-4af5176d6377958a457da3e5f671ce21540fad70.tar.gz
qbt-4af5176d6377958a457da3e5f671ce21540fad70.zip
add tests and fixes on top of 674438
Diffstat (limited to 'tests/unreachable')
-rw-r--r--tests/unreachable/source.mk1
-rw-r--r--tests/unreachable/unreachable.qbt18
2 files changed, 19 insertions, 0 deletions
diff --git a/tests/unreachable/source.mk b/tests/unreachable/source.mk
new file mode 100644
index 0000000..a647456
--- /dev/null
+++ b/tests/unreachable/source.mk
@@ -0,0 +1 @@
+SIMPLE += unreachable
diff --git a/tests/unreachable/unreachable.qbt b/tests/unreachable/unreachable.qbt
new file mode 100644
index 0000000..b97f9e1
--- /dev/null
+++ b/tests/unreachable/unreachable.qbt
@@ -0,0 +1,18 @@
+in_jump() {
+ i27 r0 = 0;
+ -> after;
+
+ i27 r1 = 0;
+ => (r1);
+
+ after:
+ => (r0);
+}
+
+after_return() {
+ i27 r0 = 0;
+ => (r0);
+
+ i27 r1 = 10;
+ => (r1);
+}