Inna Palant | ff3f07a | 2019-07-11 16:15:26 -0700 | [diff] [blame] | 1 | // RUN: %clang_cc1 -fsyntax-only -verify -std=c++11 %s |
| 2 | |
| 3 | #define OBJCLASS(name) // expected-note {{macro 'OBJCLASS' defined here}} |
| 4 | |
| 5 | class NSMutableData; |
| 6 | |
| 7 | NSMutableData *test() { // expected-note {{to match this '{'}} |
| 8 | NSMutableData *data = [[[OBJCLASS(NSMutableDataOBJCLASS( alloc] init] autorelease]; // expected-error {{unterminated function-like macro invocation}} \ |
| 9 | // expected-error {{expected ';' at end of declaration}} |
| 10 | return data; |
| 11 | } // expected-error {{expected expression}} expected-error {{expected '}'}} |