From 38104e76bdf9f50c803da9cd81653c0786f836a7 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Mon, 14 Mar 2016 11:57:51 -0700 Subject: 2780 Automate this manual test I've been using. --- 064rewrite_literal_string.cc | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/064rewrite_literal_string.cc b/064rewrite_literal_string.cc index 82d3e22e..88618be4 100644 --- a/064rewrite_literal_string.cc +++ b/064rewrite_literal_string.cc @@ -1,5 +1,16 @@ //: allow using literal strings anywhere that will accept immutable strings +:(scenario passing_literals_to_recipes) +def main [ + 1:number/raw <- foo [abc] +] +def foo x:address:shared:array:character -> n:number [ + local-scope + load-ingredients + n <- length *x +] ++mem: storing 3 in location 1 + :(before "End Instruction Inserting/Deleting Transforms") initialize_transform_rewrite_literal_string_to_text(); Transform.push_back(rewrite_literal_string_to_text); -- cgit 1.4.1-2-gfad0