1 // RUN: %clang_cc1 -fsyntax-only -verify %s
2 // RUN: %clang_cc1 -fsyntax-only -verify -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 {{expression result unused}}
33 @catch (float x) { // expected-error {{@catch parameter is not a pointer to an interface type}}
37 @throw (4,3,proc()); // expected-warning {{expression result unused}} \
38 // expected-warning {{expression result unused}}
42 @try { // expected-error {{@try statement without a @catch and @finally clause}}
50 @try {}// expected-error {{@try statement without a @catch and @finally clause}}
51 @"s"; // expected-warning {{result unused}}
56 @try {}// expected-error {{@try statement without a @catch and @finally clause}}
61 void noTwoTokenLookAheadRequiresABitOfFancyFootworkInTheParser() {