blob: 186780833d39d29e690e11461dfd30b3aa881967 [file] [log] [blame]
Anders Carlsson5c478cf2009-12-04 22:33:25 +00001// RUN: clang-cc -fsyntax-only -verify %s
2
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