This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [testsuite, committed] Fix unresolved vector26.C for c++98


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."


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]