diff options
author | Yabin Cui <yabinc@google.com> | 2016-01-28 00:05:57 +0100 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2016-01-28 00:05:57 +0100 |
commit | d379b4410b6f7c7f08751709d08ba6f819acf69d (patch) | |
tree | 66c56ba40c468d304896d3760b64c1e322436853 /edify/main.cpp | |
parent | Merge "Change BCB to perform synchronous writes." (diff) | |
parent | edify: accept long string literal. (diff) | |
download | android_bootable_recovery-d379b4410b6f7c7f08751709d08ba6f819acf69d.tar android_bootable_recovery-d379b4410b6f7c7f08751709d08ba6f819acf69d.tar.gz android_bootable_recovery-d379b4410b6f7c7f08751709d08ba6f819acf69d.tar.bz2 android_bootable_recovery-d379b4410b6f7c7f08751709d08ba6f819acf69d.tar.lz android_bootable_recovery-d379b4410b6f7c7f08751709d08ba6f819acf69d.tar.xz android_bootable_recovery-d379b4410b6f7c7f08751709d08ba6f819acf69d.tar.zst android_bootable_recovery-d379b4410b6f7c7f08751709d08ba6f819acf69d.zip |
Diffstat (limited to 'edify/main.cpp')
-rw-r--r-- | edify/main.cpp | 5 |
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; |