aboutsummaryrefslogtreecommitdiffstats
path: root/util/generic/yexception_ut.cpp
diff options
context:
space:
mode:
authorsmalov <smalov@yandex-team.ru>2022-02-10 16:47:36 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:47:36 +0300
commitf70d9720e13aef3a935e3f405b0eac554529e76e (patch)
tree5519c392aebdb16153197de07e4774c0a2be261a /util/generic/yexception_ut.cpp
parent7b659037613268d5eac4a1b6a7c5eff3cd36d4bf (diff)
downloadydb-f70d9720e13aef3a935e3f405b0eac554529e76e.tar.gz
Restoring authorship annotation for <smalov@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'util/generic/yexception_ut.cpp')
-rw-r--r--util/generic/yexception_ut.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/util/generic/yexception_ut.cpp b/util/generic/yexception_ut.cpp
index cb3e29fed8..6feb5c65c0 100644
--- a/util/generic/yexception_ut.cpp
+++ b/util/generic/yexception_ut.cpp
@@ -16,17 +16,17 @@ static inline void Throw2DontMove() {
#include <util/stream/output.h>
#include <util/string/subst.h>
-#include "yexception_ut.h"
+#include "yexception_ut.h"
#include "bt_exception.h"
-
+
#if defined(_MSC_VER)
#pragma warning(disable : 4702) /*unreachable code*/
#endif
-static void CallbackFun(int i) {
- throw i;
-}
-
+static void CallbackFun(int i) {
+ throw i;
+}
+
static IOutputStream* OUTS = nullptr;
namespace NOuter::NInner {
@@ -247,7 +247,7 @@ private:
throw;
}
}
-
+
//! tests propagation of an exception through C code
//! @note on some platforms, for example GCC on 32-bit Linux without -fexceptions option,
//! throwing an exception from a C++ callback through C code aborts program
@@ -258,7 +258,7 @@ private:
UNIT_ASSERT(false);
} catch (int i) {
UNIT_ASSERT_VALUES_EQUAL(i, N);
- }
+ }
}
void TestMacroOverload() {