summaryrefslogtreecommitdiff
path: root/test/Parser/objcxx11-messaging-and-lambda.mm
blob: 002f3e9c710aa7f396ed63ca0c92f94088d8375d (plain)
1
2
3
4
5
6
7
8
9
10
11
// 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 '}'}}