Fix InitListExpr test

Wrong case of Check meant this has no effect.

llvm-svn: 348713
This commit is contained in:
Stephen Kelly 2018-12-09 13:13:41 +00:00
parent 3192449412
commit 2ac0c371d0
1 changed files with 6 additions and 6 deletions

View File

@ -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) {