opnsense-src/test/CXX/basic/basic.lookup/basic.lookup.unqual/p15.cpp

18 lines
395 B
C++
Raw Normal View History

2010-01-01 05:34:51 -05:00
// RUN: %clang_cc1 -fsyntax-only -verify %s
2009-11-04 10:04:32 -05:00
// XFAIL: *
2009-06-22 04:08:35 -04:00
class C {
public:
C(int a, int b);
};
C::C(int a, // expected-note {{previous definition}}
int b) // expected-note {{previous definition}}
try {
int c;
} catch (int a) { // expected-error {{redefinition of 'a'}}
int b; // expected-error {{redefinition of 'b'}}
2009-12-01 06:08:04 -05:00
++c; // expected-error {{use of undeclared identifier 'c'}}
2009-06-22 04:08:35 -04:00
}