You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12 lines
520 B

// RUN: %clang_cc1 -fsyntax-only -verify -std=c++11 %s
#define OBJCLASS(name) // expected-note {{macro 'OBJCLASS' defined here}}
class NSMutableData;
NSMutableData *test() { // expected-note {{to match this '{'}}
NSMutableData *data = [[[OBJCLASS(NSMutableDataOBJCLASS( alloc] init] autorelease]; // expected-error {{unterminated function-like macro invocation}} \
// expected-error {{expected ';' at end of declaration}}
return data;
} // expected-error {{expected expression}} expected-error {{expected '}'}}