[lld][WebAssembly] Reinstate mistakenly disabled test. NFC
[llvm-project.git] / clang / test / SemaCXX / deprecated-copy-with-user-provided-copy.cpp
blob4f259ca788540a67ef046642d515f58e0dd86ecc
1 // RUN: %clang_cc1 -std=c++11 %s -Wdeprecated -verify
2 // RUN: %clang_cc1 -std=c++11 %s -Wdeprecated-copy-with-user-provided-copy -verify
4 struct A {
5 A &operator=(const A &); // expected-warning {{definition of implicit copy constructor for 'A' is deprecated because it has a user-provided copy assignment operator}}
6 };
8 void foo() {
9 A a1;
10 A a2(a1); // expected-note {{implicit copy constructor for 'A' first required here}}