From 6211191084130610abc43258a2bd5278e5987474 Mon Sep 17 00:00:00 2001 From: Neargye Date: Mon, 30 Apr 2018 01:37:25 +0500 Subject: [PATCH] check no call function --- test/test.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/test.cpp b/test/test.cpp index c6af55d..7ca18ea 100644 --- a/test/test.cpp +++ b/test/test.cpp @@ -28,23 +28,23 @@ #include #include -#include +#include struct SomeStruct { int somefield; void SomeMethod1(const int i) { somefield = i; - std::cout << "No called!" << std::endl; + throw std::exception{}; } int SomeMethod2() const { - std::cout << "No called!" << std::endl; + throw std::exception{}; return somefield; } }; -void SomeMethod3() { std::cout << "No called!" << std::endl; } +void SomeMethod3() { throw std::exception{}; } struct Long { struct LL {