aboutsummaryrefslogtreecommitdiff
path: root/tests/switch/testscript
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2019-10-01 16:37:17 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2019-10-01 17:45:34 +0300
commit30e6e96de8d04d46a56b0610289af57c3f34bd1f (patch)
treeac4aac4598bece395669295090c172c7df281d3d /tests/switch/testscript
parent9966533902ad459bafffa692fd0eb0c5a9e00e03 (diff)
Disable for GCC 4.9 failing testscript
Diffstat (limited to 'tests/switch/testscript')
-rw-r--r--tests/switch/testscript28
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
: