blob: 40a61e47fd3c3b16a3faf25534f3f84069cf10b5 [file] [log] [blame]
Daniel Dunbara5728872009-12-15 20:14:24 +00001// RUN: %clang_cc1 -fsyntax-only -verify %s
Anders Carlsson5c478cf2009-12-04 22:33:25 +00002
3struct A { }; // expected-note {{previous implicit declaration is here}}
4A::A() { } // expected-error {{definition of implicitly declared constructor}}
5
6struct B { }; // expected-note {{previous implicit declaration is here}}
7B::B(const B&) { } // expected-error {{definition of implicitly declared copy constructor}}
8
9struct C { }; // expected-note {{previous implicit declaration is here}}
10C& C::operator=(const C&) { return *this; } // expected-error {{definition of implicitly declared copy assignment operator}}
11
12struct D { }; // expected-note {{previous implicit declaration is here}}
13D::~D() { } // expected-error {{definition of implicitly declared destructor}}
14