aboutsummaryrefslogtreecommitdiff
path: root/tests/test_core.py
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2014-06-09 15:18:28 -0700
committerAlon Zakai <alonzakai@gmail.com>2014-06-09 15:18:28 -0700
commit5bbcaa3df570328e568131d8d65aaeb5581942a3 (patch)
tree00f816a907caf7048f9dbfab20a2e72d9c9220ff /tests/test_core.py
parentfee203ed899368e0bd0d6bd6c88c72b0ca8d74e8 (diff)
do not modify textual memory initializer when emitting source maps, as it messes up line numbers; fixes #2410
Diffstat (limited to 'tests/test_core.py')
-rw-r--r--tests/test_core.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/test_core.py b/tests/test_core.py
index b9057f4e..0ec0320e 100644
--- a/tests/test_core.py
+++ b/tests/test_core.py
@@ -6386,10 +6386,15 @@ def process(filename):
if (i < 10) throw i; // line 5
}
+ #include <iostream>
+ #include <string>
+
int main() {
+ std::string x = "ok"; // add libc++ stuff to make this big, test for #2410
int i;
scanf("%d", &i);
foo(i);
+ std::cout << x << std::endl;
return 0;
}
'''