1 // RUN: %clang_cc1 %s -verify -fsyntax-only -fblocks
2 // expected-no-diagnostics
6 int main(int argc
, char *argv
[]) {
8 long (^addthem
)(const char *, ...) = ^long (const char *format
, ...){
15 va_start(argp
, format
);
16 for (p
= format
; *p
; p
++) switch (*p
) {
18 i
= va_arg(argp
, int);
22 d
= va_arg(argp
, double);
26 c
= va_arg(argp
, int);
32 long testresult
= addthem("ii", 10, 20);
33 if (testresult
!= 30) {
36 testresult
= addthem("idc", 30, 40.0, 'a');
37 if (testresult
!= (70+'a')) {