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