1 // RUN: %clang_cc1 -triple x86_64-apple-macosx10.10 -fsyntax-only -verify -fobjc-exceptions %s
2 // RUN: %clang_cc1 -triple x86_64-apple-macosx10.10 -fsyntax-only -verify -fobjc-exceptions -x objective-c++ %s
5 @interface NSConstantString
30 @throw 1,2; // expected-error {{@throw requires an Objective-C object type ('int' invalid)}} \
31 // expected-warning {{left operand of comma operator has no effect}}
33 @catch (float x) { // expected-error {{@catch parameter is not a pointer to an interface type}}
37 @throw (4,3,proc()); // expected-warning 2{{left operand of comma operator has no effect}}
41 @try { // expected-error {{@try statement without a @catch and @finally clause}}
49 @try {}// expected-error {{@try statement without a @catch and @finally clause}}
50 @"s"; // expected-warning {{result unused}}
55 @try {}// expected-error {{@try statement without a @catch and @finally clause}}
60 void noTwoTokenLookAheadRequiresABitOfFancyFootworkInTheParser() {