From 5ee2c02ac613cb828e827eaf70dc93f587f46d04 Mon Sep 17 00:00:00 2001 From: Steve Naroff Date: Wed, 11 Feb 2009 20:05:44 +0000 Subject: Fix [sema] @throw; accepted outside catch block. llvm-svn: 64318 --- clang/test/SemaObjC/try-catch.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'clang/test') diff --git a/clang/test/SemaObjC/try-catch.m b/clang/test/SemaObjC/try-catch.m index 00f1129d31b..bb8b8491d66 100644 --- a/clang/test/SemaObjC/try-catch.m +++ b/clang/test/SemaObjC/try-catch.m @@ -39,5 +39,5 @@ typedef struct _NSZone NSZone; int foo() { @throw 42; // expected-warning {{invalid 'int' argument (expected an ObjC object type)}} - @throw; // FIXME: error: ‘@throw’ (rethrow) used outside of a @catch block + @throw; // expected-error {{‘@throw’ (rethrow) used outside of a @catch block}} } -- cgit v1.2.3