[cfe-commits] r68928 - /cfe/trunk/test/SemaObjC/stmts.m
Chris Lattner
sabre at nondot.org
Sun Apr 12 16:29:27 PDT 2009
Author: lattner
Date: Sun Apr 12 18:29:27 2009
New Revision: 68928
URL: http://llvm.org/viewvc/llvm-project?rev=68928&view=rev
Log:
add some more coverage.
Modified:
cfe/trunk/test/SemaObjC/stmts.m
Modified: cfe/trunk/test/SemaObjC/stmts.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaObjC/stmts.m?rev=68928&r1=68927&r2=68928&view=diff
==============================================================================
--- cfe/trunk/test/SemaObjC/stmts.m (original)
+++ cfe/trunk/test/SemaObjC/stmts.m Sun Apr 12 18:29:27 2009
@@ -1,9 +1,14 @@
// RUN: clang-cc %s -verify -fsyntax-only
+struct some_struct;
+
// Note: NSException is not declared.
void f0(id x) {
@try {
- } @catch (NSException *x) { // expected-error{{unknown type name 'NSException'}}
+ } @catch (NSException *x) { // expected-error {{unknown type name 'NSException'}}
+ } @catch (struct some_struct x) { // expected-error {{@catch parameter is not a pointer to an interface type}}
+ } @catch (int x) { // expected-error {{@catch parameter is not a pointer to an interface type}}
+ } @catch (...) {
}
}
More information about the cfe-commits
mailing list