This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [testsuite, committed] Fix unresolved vector26.C for c++98
- From: Andreas Schwab <schwab at linux-m68k dot org>
- To: Uros Bizjak <ubizjak at gmail dot com>
- Cc: "gcc-patches\ at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>, Richard Sandiford <rdsandiford at googlemail dot com>
- Date: Sat, 01 Feb 2014 12:51:46 +0100
- Subject: Re: [testsuite, committed] Fix unresolved vector26.C for c++98
- Authentication-results: sourceware.org; auth=none
- References: <CAFULd4Y7MqmaKBsQ76awunNYJjPM17MXQ_K0HFF=SN8EgLe7qw at mail dot gmail dot com>
Uros Bizjak <ubizjak@gmail.com> writes:
> Hello!
>
>> The scan-assembler test in vector26.C was showing up unresolved for c++98,
>> since in that case we report an expected error and don't produce any asm.
>>
>> Tested on mips64-linux-gnu and applied as obvious.
>
> -// { dg-final { scan-assembler-not "globl\[ \t]*_Z3bar" } }
> +// { dg-final { scan-assembler-not "globl\[ \t]*_Z3bar" { target { !
> c++98 } } } }
>
>
> Shouldn't "]" be escaped as well?
There is no real need, since ] by itself is not special in a tcl string,
only the opening [.
Andreas.
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."