Skip to content
This repository was archived by the owner on Nov 1, 2021. It is now read-only.

Commit 9808b71

Browse files
committed
Add a test case for blocks taking an array typedef
r183614 was failing because va_list on some platforms is defined in a similar manner. This test fails on Windows with r183614 applied. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@183617 91177308-0d34-0410-b5e6-96231b3b80d8
1 parent c910d4c commit 9808b71

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

test/Sema/block-args.c

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,3 +45,14 @@ void test5_helper(void (^)(int, int[*]));
4545
void test5(void) {
4646
test5_helper(^(int n, int array[n]) {});
4747
}
48+
49+
// Reduced from a problem on platforms where va_list is an array.
50+
struct tag {
51+
int x;
52+
};
53+
typedef struct tag array_ty[1];
54+
void test6(void) {
55+
void (^block)(array_ty) = ^(array_ty arr) { };
56+
array_ty arr;
57+
block(arr);
58+
}

0 commit comments

Comments
 (0)