diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2019-10-01 16:37:17 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2019-10-01 17:45:34 +0300 |
commit | 30e6e96de8d04d46a56b0610289af57c3f34bd1f (patch) | |
tree | ac4aac4598bece395669295090c172c7df281d3d /tests/switch | |
parent | 9966533902ad459bafffa692fd0eb0c5a9e00e03 (diff) |
Disable for GCC 4.9 failing testscript
Diffstat (limited to 'tests/switch')
-rw-r--r-- | tests/switch/testscript | 28 |
1 files changed, 18 insertions, 10 deletions
diff --git a/tests/switch/testscript b/tests/switch/testscript index 346e968..9e536e7 100644 --- a/tests/switch/testscript +++ b/tests/switch/testscript @@ -88,20 +88,28 @@ EOO : matcher-arg : -$* <<EOI >>EOO -for i: abc ABC aBC +: Note that case-insensitive regex matching is broken in older versions of +: libstdc++ (see GCC bug 71500 for details). +: +if ($cxx.id != 'gcc' || \ + $cxx.version.major > 7 || \ + ($cxx.version.major == 7 && $cxx.version.minor >= 1)) { - switch $i: regex.match icase + $* <<EOI >>EOO + for i: abc ABC aBC { - case '[a-z]+' - print a + switch $i: regex.match icase + { + case '[a-z]+' + print a + } } + EOI + a + a + a + EOO } -EOI -a -a -a -EOO : matcher-multiple : |