| // RUN: %clang_cc1 -fsyntax-only -verify -fobjc-exceptions %s |
| // RUN: %clang_cc1 -fsyntax-only -verify -fobjc-exceptions -x objective-c++ %s |
| @interface NSConstantString |
| @throw 1,2; // expected-error {{@throw requires an Objective-C object type ('int' invalid)}} \ |
| // expected-warning {{expression result unused}} |
| @catch (float x) { // expected-error {{@catch parameter is not a pointer to an interface type}} |
| @throw (4,3,proc()); // expected-warning {{expression result unused}} \ |
| // expected-warning {{expression result unused}} |
| @try { // expected-error {{@try statement without a @catch and @finally clause}} |
| @try {}// expected-error {{@try statement without a @catch and @finally clause}} |
| @"s"; // expected-warning {{result unused}} |
| @try {}// expected-error {{@try statement without a @catch and @finally clause}} |
| void noTwoTokenLookAheadRequiresABitOfFancyFootworkInTheParser() { |