summaryrefslogtreecommitdiffstats
path: root/clang/test/Parser
diff options
context:
space:
mode:
authorSebastian Redl <sebastian.redl@getdesigned.at>2009-04-26 21:08:36 +0000
committerSebastian Redl <sebastian.redl@getdesigned.at>2009-04-26 21:08:36 +0000
commitd98ecd615ff0b0985b7145c56fe92821b70559dd (patch)
treec726a8b9ce4d919e2287bc9389dafe4fa7c32336 /clang/test/Parser
parent0d0d3e56dd2afccd25dd5da0a5a34484b7a3474c (diff)
downloadbcm5719-llvm-d98ecd615ff0b0985b7145c56fe92821b70559dd.tar.gz
bcm5719-llvm-d98ecd615ff0b0985b7145c56fe92821b70559dd.zip
The mysterious bug turns out to be an incredibly bone-headed mistake.
llvm-svn: 70160
Diffstat (limited to 'clang/test/Parser')
-rw-r--r--clang/test/Parser/cxx-try.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/clang/test/Parser/cxx-try.cpp b/clang/test/Parser/cxx-try.cpp
index 8deed35559c..535f40d7805 100644
--- a/clang/test/Parser/cxx-try.cpp
+++ b/clang/test/Parser/cxx-try.cpp
@@ -30,14 +30,11 @@ void h() try {
struct A {
int i;
- A(float) : i(0) try {} // expected-error {{expected '{' or ','}}
A(int);
A(char);
- // FIXME: There's something very strange going on here. After the first
- // inline function-try-block, subsequent inline bodies aren't parsed anymore.
- // Valgrind is silent, though, and I can't even debug this properly.
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 ','}}
OpenPOWER on IntegriCloud