xref: /llvm-project/clang/test/SemaCXX/diagnose-prioritiy-exception-redefining.cpp (revision 53705ddcb73b15393a48c868864522d23aef7884)
1 // RUN: %clang_cc1 -fsyntax-only -verify -fcxx-exceptions -std=c++11 %s
2 
3 struct ExplicitlySpecialMethod {
4   ExplicitlySpecialMethod() = default;
5 };
ExplicitlySpecialMethod()6 ExplicitlySpecialMethod::ExplicitlySpecialMethod() {} // expected-error{{definition of explicitly defaulted default constructor}}
7 
8 struct ImplicitlySpecialMethod {};
ImplicitlySpecialMethod()9 ImplicitlySpecialMethod::ImplicitlySpecialMethod() {} // expected-error{{definition of implicitly declared default constructor}}
10