summaryrefslogtreecommitdiffstats
path: root/edify/main.cpp
diff options
context:
space:
mode:
authorYabin Cui <yabinc@google.com>2016-01-28 00:23:53 +0100
committerandroid-build-merger <android-build-merger@google.com>2016-01-28 00:23:53 +0100
commitbb0e2754ac40dfceaee670e1214dce0c70fc5c51 (patch)
tree94484bc686f5a906012a9a1066bb4f9b0855bafb /edify/main.cpp
parentMerge "Change BCB to perform synchronous writes." (diff)
parentMerge "edify: accept long string literal." (diff)
downloadandroid_bootable_recovery-bb0e2754ac40dfceaee670e1214dce0c70fc5c51.tar
android_bootable_recovery-bb0e2754ac40dfceaee670e1214dce0c70fc5c51.tar.gz
android_bootable_recovery-bb0e2754ac40dfceaee670e1214dce0c70fc5c51.tar.bz2
android_bootable_recovery-bb0e2754ac40dfceaee670e1214dce0c70fc5c51.tar.lz
android_bootable_recovery-bb0e2754ac40dfceaee670e1214dce0c70fc5c51.tar.xz
android_bootable_recovery-bb0e2754ac40dfceaee670e1214dce0c70fc5c51.tar.zst
android_bootable_recovery-bb0e2754ac40dfceaee670e1214dce0c70fc5c51.zip
Diffstat (limited to 'edify/main.cpp')
-rw-r--r--edify/main.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/edify/main.cpp b/edify/main.cpp
index b1baa0b13..6007a3d58 100644
--- a/edify/main.cpp
+++ b/edify/main.cpp
@@ -18,6 +18,8 @@
#include <stdlib.h>
#include <string.h>
+#include <string>
+
#include "expr.h"
#include "parser.h"
@@ -151,6 +153,9 @@ int test() {
expect("greater_than_int(x, 3)", "", &errors);
expect("greater_than_int(3, x)", "", &errors);
+ // big string
+ expect(std::string(8192, 's').c_str(), std::string(8192, 's').c_str(), &errors);
+
printf("\n");
return errors;