Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
path: root/projects/SelfTest/UsageTests/ToStringVariant.tests.cpp
diff options
context:
space:
mode:
authorMartin Hořeňovský2019-10-31 14:29:59 +0100
committerMartin Hořeňovský2019-10-31 14:29:59 +0100
commit776a4686c7fa783fe3c57b7dbcefba57fe142c55 (patch)
tree225f2c9ec7a9e11b3ea00f6097d3f0913f66934c /projects/SelfTest/UsageTests/ToStringVariant.tests.cpp
parent3136c4fb6aeba965f0a6700eff60fa29d9b8c326 (diff)
downloadcatch3-776a4686c7fa783fe3c57b7dbcefba57fe142c55.tar.gz
Warning fixes in examples and tests
Diffstat (limited to 'projects/SelfTest/UsageTests/ToStringVariant.tests.cpp')
-rw-r--r--projects/SelfTest/UsageTests/ToStringVariant.tests.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/projects/SelfTest/UsageTests/ToStringVariant.tests.cpp b/projects/SelfTest/UsageTests/ToStringVariant.tests.cpp
index 60b3f903..c6809c0f 100644
--- a/projects/SelfTest/UsageTests/ToStringVariant.tests.cpp
+++ b/projects/SelfTest/UsageTests/ToStringVariant.tests.cpp
@@ -9,12 +9,12 @@
// We need 2 types with non-trivial copies/moves
struct MyType1 {
MyType1() = default;
- MyType1(MyType1 const&) { throw 1; }
+ [[noreturn]] MyType1(MyType1 const&) { throw 1; }
MyType1& operator=(MyType1 const&) { throw 3; }
};
struct MyType2 {
MyType2() = default;
- MyType2(MyType2 const&) { throw 2; }
+ [[noreturn]] MyType2(MyType2 const&) { throw 2; }
MyType2& operator=(MyType2 const&) { throw 4; }
};