1 // RUN: %clang_cc1 -x objective-c++ -fblocks -fms-extensions -rewrite-objc %s -o %t-rw.cpp
2 // RUN: %clang_cc1 -fsyntax-only -fblocks -Wno-address-of-temporary -D"Class=void*" -D"id=void*" -D"SEL=void*" -D"__declspec(X)=" %t-rw.cpp
5 extern "C" void *sel_registerName(const char *);
6 typedef unsigned long size_t;
18 - (struct S) Meth : (int) arg1 : (id) arg2;
20 - (union U) Meth2 : (double)d;
21 - (struct S) VAMeth : (int)anchor, ...;
29 struct S s = [PI() Meth : 1 : (id)0];
31 U u = [PI() Meth2 : 3.14];
33 S s1 = [PI() VAMeth : 12, 13.4, 1000, "hello"];
35 S s2 = [PI() VAMeth : 12];
37 S s3 = [PI() VAMeth : 0, "hello", "there"];
39 S s4 = [PI() VAMeth : 2, ^{}, &foo];