blob: 9572aaa1427349a73b430a7c3f29cc1a52cff702 [file] [log] [blame]
Daniel Dunbare16b80c2009-06-15 17:18:42 +00001// RUN: clang-cc -fsyntax-only -verify %s
2// XFAIL
3
4class C {
5public:
6 C(int a, int b);
7};
8
9C::C(int a, // expected-note {{previous definition}}
10 int b) // expected-note {{previous definition}}
11try {
12 int c;
13
14} catch (int a) { // expected-error {{redefinition of 'a'}}
15 int b; // expected-error {{redefinition of 'b'}}
16 ++c; // expected-error {{use of undeclared identifion 'c'}}
17}