brintos

brintos / llvm-project-archived public Read only

0
0
Text · 607 B · f29d65a Raw
14 lines · cpp
1// RUN: %clang_cc1 -std=c++11 %s -Wdeprecated -verify2// RUN: %clang_cc1 -std=c++11 %s -Wdeprecated -verify -fms-compatibility3// RUN: %clang_cc1 -std=c++11 %s -Wdeprecated-copy-with-user-provided-copy -verify4// RUN: %clang_cc1 -std=c++11 %s -Wdeprecated-copy-with-user-provided-copy -verify -fms-compatibility5 6struct A {7  A &operator=(const A &); // expected-warning {{definition of implicit copy constructor for 'A' is deprecated because it has a user-provided copy assignment operator}}8};9 10void foo() {11  A a1;12  A a2(a1); // expected-note {{implicit copy constructor for 'A' first required here}}13}14