check no call function

This commit is contained in:
Neargye 2018-04-30 01:37:25 +05:00
parent ebc3c197ef
commit 6211191084

View file

@ -28,23 +28,23 @@
#include <cstring>
#include <string>
#include <iostream>
#include <stdexcept>
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 {