[docs] Add LICENSE.txt to the root of the mono-repo
[llvm-project.git] / clang / test / SemaCXX / deprecated-copy-with-user-provided-dtor.cpp
blob490ae6fbdabb9f390933d712e79a1451b59ef17b
1 // RUN: %clang_cc1 -std=c++11 %s -Wdeprecated -verify
2 // RUN: %clang_cc1 -std=c++11 %s -Wdeprecated-copy-with-user-provided-dtor -verify
4 struct A {
5 ~A(); // expected-warning {{definition of implicit copy constructor for 'A' is deprecated because it has a user-provided destructor}}
6 };
8 void test() {
9 A a1;
10 A a2(a1); // expected-note {{implicit copy constructor for 'A' first required here}}