r348713 - Fix InitListExpr test

Aaron Ballman via cfe-commits cfe-commits at lists.llvm.org
Sun Dec 9 09:02:44 PST 2018


On Sun, Dec 9, 2018 at 8:16 AM Stephen Kelly via cfe-commits
<cfe-commits at lists.llvm.org> wrote:
>
> Author: steveire
> Date: Sun Dec  9 05:13:41 2018
> New Revision: 348713
>
> URL: http://llvm.org/viewvc/llvm-project?rev=348713&view=rev
> Log:
> Fix InitListExpr test
>
> Wrong case of Check meant this has no effect.

Good catch! Thank you for fixing that up.

~Aaron

>
> Modified:
>     cfe/trunk/test/AST/ast-dump-stmt.cpp
>
> Modified: cfe/trunk/test/AST/ast-dump-stmt.cpp
> URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/AST/ast-dump-stmt.cpp?rev=348713&r1=348712&r2=348713&view=diff
> ==============================================================================
> --- cfe/trunk/test/AST/ast-dump-stmt.cpp (original)
> +++ cfe/trunk/test/AST/ast-dump-stmt.cpp Sun Dec  9 05:13:41 2018
> @@ -89,12 +89,12 @@ union U {
>  void TestUnionInitList()
>  {
>    U us[3] = {1};
> -// Check: VarDecl {{.+}} <col:3, col:18> col:5 us 'U [3]' cinit
> -// Check-NEXT: `-InitListExpr {{.+}} <col:13, col:18> 'U [3]'
> -// Check-NEXT:   |-array filler
> -// Check-NEXT:   | `-InitListExpr {{.+}} <col:18> 'U' field Field {{.+}} 'i' 'int'
> -// Check-NEXT:   |-InitListExpr {{.+}} <col:14> 'U' field Field {{.+}} 'i' 'int'
> -// Check-NEXT:   | `-IntegerLiteral {{.+}} <col:14> 'int' 1
> +// CHECK: VarDecl {{.+}} <col:3, col:15> col:5 us 'U [3]' cinit
> +// CHECK-NEXT: `-InitListExpr {{.+}} <col:13, col:15> 'U [3]'
> +// CHECK-NEXT:   |-array filler
> +// CHECK-NEXT:   | `-InitListExpr {{.+}} <col:15> 'U' field Field {{.+}} 'i' 'int'
> +// CHECK-NEXT:   `-InitListExpr {{.+}} <col:14> 'U' field Field {{.+}} 'i' 'int'
> +// CHECK-NEXT:     `-IntegerLiteral {{.+}} <col:14> 'int' 1
>  }
>
>  void TestSwitch(int i) {
>
>
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits


More information about the cfe-commits mailing list