| // RUN: %clang_cc1 -std=c++11 %s -Wdeprecated -verify |
| // RUN: %clang_cc1 -std=c++11 %s -Wdeprecated -verify -fms-compatibility |
| // RUN: %clang_cc1 -std=c++11 %s -Wdeprecated-copy-with-user-provided-copy -verify |
| // RUN: %clang_cc1 -std=c++11 %s -Wdeprecated-copy-with-user-provided-copy -verify -fms-compatibility |
| A &operator=(const A &); // expected-warning {{definition of implicit copy constructor for 'A' is deprecated because it has a user-provided copy assignment operator}} |
| A a2(a1); // expected-note {{implicit copy constructor for 'A' first required here}} |