| // RUN: %clang_cc1 -fsyntax-only -verify %s -fblocks -std=c++1y |
| extern "C" int exit(int); |
| int main (int argc, const char * argv[]) { |
| BobTheStruct (^copyStruct)(BobTheStruct); |
| copyStruct = ^(BobTheStruct aBigStruct){ return aBigStruct; }; // pass-by-value intrinsically copies the argument |
| outty = copyStruct(inny); |
| if ( (inny.ps[i] != outty.ps[i]) || (inny.qs[i] != outty.qs[i]) ) { |
| int (^P)(int) = reinterpret_cast<int(^)(int)>(1); |
| P = reinterpret_cast<int(^)(int)>((void*)1); |
| P = (int(^)(int))((void*)1); |
| template <class T> void foo(T &x) noexcept(noexcept(x.foo())); |
| extern int a; // expected-note {{previous}} |
| extern int b(); // expected-note {{previous}} |
| extern float a; // expected-error {{different type}} |
| extern float b(); // expected-error {{cannot be overloaded}} |