blob: 7df0f536cf08475cb31ee7868eb169054cfea609 [file] [log] [blame]
Alp Toker6cfe4122014-05-28 12:20:23 +00001// RUN: %clang_cc1 -fexceptions -fcxx-exceptions -fsyntax-only -verify %s
Daniel Dunbara5308412009-11-03 07:25:45 +00002// XFAIL: *
Daniel Dunbare16b80c2009-06-15 17:18:42 +00003
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'}}
Douglas Gregor3e5e9602009-11-25 19:25:39 +000016 ++c; // expected-error {{use of undeclared identifier 'c'}}
Daniel Dunbare16b80c2009-06-15 17:18:42 +000017}