[cfe-commits] r173305 - /cfe/trunk/test/Lexer/badstring_in_if0.c

David Blaikie dblaikie at gmail.com
Wed Jan 23 15:22:57 PST 2013


On Wed, Jan 23, 2013 at 3:04 PM, Bill Wendling <isanbard at gmail.com> wrote:
> Author: void
> Date: Wed Jan 23 17:04:29 2013
> New Revision: 173305
>
> URL: http://llvm.org/viewvc/llvm-project?rev=173305&view=rev
> Log:
> The diagnostic is now a warning instead of an error. Also don't check lines beginning with '#', since they could contain a path with the unexpected word in them.

Might not hurt to switch this to -verify or FileCheck while you're
there. Negative grep tests are a little loose.

>
> Modified:
>     cfe/trunk/test/Lexer/badstring_in_if0.c
>
> Modified: cfe/trunk/test/Lexer/badstring_in_if0.c
> URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Lexer/badstring_in_if0.c?rev=173305&r1=173304&r2=173305&view=diff
> ==============================================================================
> --- cfe/trunk/test/Lexer/badstring_in_if0.c (original)
> +++ cfe/trunk/test/Lexer/badstring_in_if0.c Wed Jan 23 17:04:29 2013
> @@ -1,4 +1,4 @@
> -// RUN: %clang_cc1 -E %s 2>&1 | not grep error
> +// RUN: %clang_cc1 -E %s 2>&1 | grep -v '^#' | not grep warning
>  #if 0
>
>    "
>
>
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits



More information about the cfe-commits mailing list