[cfe-commits] r91015 - in /cfe/trunk/test/Parser: cxx-stmt.cpp cxx-try.cpp

Chris Lattner sabre at nondot.org
Wed Dec 9 16:37:13 PST 2009


Author: lattner
Date: Wed Dec  9 18:37:13 2009
New Revision: 91015

URL: http://llvm.org/viewvc/llvm-project?rev=91015&view=rev
Log:
rename testcase

Added:
    cfe/trunk/test/Parser/cxx-stmt.cpp
      - copied unchanged from r91005, cfe/trunk/test/Parser/cxx-try.cpp
Removed:
    cfe/trunk/test/Parser/cxx-try.cpp

Removed: cfe/trunk/test/Parser/cxx-try.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Parser/cxx-try.cpp?rev=91014&view=auto

==============================================================================
--- cfe/trunk/test/Parser/cxx-try.cpp (original)
+++ cfe/trunk/test/Parser/cxx-try.cpp (removed)
@@ -1,41 +0,0 @@
-// RUN: clang-cc -fsyntax-only -verify %s
-
-void f()
-{
-  try {
-    ;
-  } catch(int i) {
-    ;
-  } catch(...) {
-  }
-}
-
-void g()
-{
-  try; // expected-error {{expected '{'}}
-
-  try {}
-  catch; // expected-error {{expected '('}}
-
-  try {}
-  catch (...); // expected-error {{expected '{'}}
-
-  try {}
-  catch {} // expected-error {{expected '('}}
-}
-
-void h() try {
-} catch(...) {
-}
-
-struct A {
-  int i;
-  A(int);
-  A(char);
-  A() try : i(0) {} catch(...) {}
-  void f() try {} catch(...) {}
-  A(float) : i(0) try {} // expected-error {{expected '{' or ','}}
-};
-
-A::A(char) : i(0) try {} // expected-error {{expected '{' or ','}}
-A::A(int j) try : i(j) {} catch(...) {}





More information about the cfe-commits mailing list