diff options
author | Ian Lance Taylor <iant@google.com> | 2007-10-19 23:38:40 +0000 |
---|---|---|
committer | Ian Lance Taylor <iant@google.com> | 2007-10-19 23:38:40 +0000 |
commit | 28ef317915adce586bbe0080b0950de1a55dea14 (patch) | |
tree | 49dc6754fb2daae2b8c5ad83a8763377f1d5f159 /gold/testsuite/two_file_test_1.cc | |
parent | fa1bd4fb25c5fb738010e77f1244161727b5f7bd (diff) | |
download | fsf-binutils-gdb-28ef317915adce586bbe0080b0950de1a55dea14.zip fsf-binutils-gdb-28ef317915adce586bbe0080b0950de1a55dea14.tar.gz fsf-binutils-gdb-28ef317915adce586bbe0080b0950de1a55dea14.tar.bz2 |
Add wide string constant test.
Diffstat (limited to 'gold/testsuite/two_file_test_1.cc')
-rw-r--r-- | gold/testsuite/two_file_test_1.cc | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/gold/testsuite/two_file_test_1.cc b/gold/testsuite/two_file_test_1.cc index d22d957..382e048 100644 --- a/gold/testsuite/two_file_test_1.cc +++ b/gold/testsuite/two_file_test_1.cc @@ -180,3 +180,16 @@ t14() return false; return *s2 == '\0'; } + +// 15 Compare wide string constants in file 1 and file 2. + +bool +t15() +{ + const wchar_t* s1 = TEST_WIDE_STRING_CONSTANT; + const wchar_t* s2 = f15(); + while (*s1 != '\0') + if (*s1++ != *s2++) + return false; + return *s2 == '\0'; +} |