brintos

brintos / llvm-project-archived public Read only

0
0
Text · 520 B · 002f3e9 Raw
12 lines · plain
1// RUN: %clang_cc1 -fsyntax-only -verify -std=c++11 %s2 3#define OBJCLASS(name) // expected-note {{macro 'OBJCLASS' defined here}}4 5class NSMutableData;6 7NSMutableData *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 '}'}}12