]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/SemaCXX/implicit-member-functions.cpp
Update clang to r93512.
[FreeBSD/FreeBSD.git] / test / SemaCXX / implicit-member-functions.cpp
1 // RUN: %clang_cc1 -fsyntax-only -verify %s
2
3 struct A { }; // expected-note {{previous implicit declaration is here}}
4 A::A() { } // expected-error {{definition of implicitly declared constructor}}
5
6 struct B { }; // expected-note {{previous implicit declaration is here}}
7 B::B(const B&) { } // expected-error {{definition of implicitly declared copy constructor}}
8
9 struct C { }; // expected-note {{previous implicit declaration is here}}
10 C& C::operator=(const C&) { return *this; } // expected-error {{definition of implicitly declared copy assignment operator}}
11
12 struct D { }; // expected-note {{previous implicit declaration is here}}
13 D::~D() { } // expected-error {{definition of implicitly declared destructor}}
14