aboutsummaryrefslogtreecommitdiff
path: root/build/b.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-07-24 16:39:55 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-07-24 16:39:55 +0200
commit1d6e68fda762535fa8508f94ca254a79f293edb2 (patch)
tree7b97edd9f1786cd610c1f41e720d2b105dd87cbc /build/b.cxx
parentbb4f9e6498ba715911f83e0dc221a5b1b86baf51 (diff)
Add support for generated test input/output
Diffstat (limited to 'build/b.cxx')
-rw-r--r--build/b.cxx9
1 files changed, 6 insertions, 3 deletions
diff --git a/build/b.cxx b/build/b.cxx
index 3a6d71f..21e72cf 100644
--- a/build/b.cxx
+++ b/build/b.cxx
@@ -739,7 +739,8 @@ main (int argc, char* argv[])
if (mif->operation_pre != nullptr)
mif->operation_pre (pre_oid); // Cannot be translated.
- current_oif = pre_oif;
+ current_inner_oif = pre_oif;
+ current_outer_oif = oif;
current_mode = pre_oif->mode;
action a (mid, pre_oid, oid);
@@ -754,7 +755,8 @@ main (int argc, char* argv[])
<< ", id " << static_cast<uint16_t> (pre_oid);});
}
- current_oif = oif;
+ current_inner_oif = oif;
+ current_outer_oif = nullptr;
current_mode = oif->mode;
action a (mid, oid, 0);
@@ -770,7 +772,8 @@ main (int argc, char* argv[])
if (mif->operation_pre != nullptr)
mif->operation_pre (post_oid); // Cannot be translated.
- current_oif = post_oif;
+ current_inner_oif = post_oif;
+ current_outer_oif = oif;
current_mode = post_oif->mode;
action a (mid, post_oid, oid);