1//===-- unittests/Runtime/CrashHandlerFixture.h -----------------*- C++ -*-===//
2//
3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4// See https://llvm.org/LICENSE.txt for license information.
5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6//
7//===----------------------------------------------------------------------===//
8//
9/// Test fixture registers a custom crash handler to ensure death tests fail
10/// with expected message.
11//
12//===----------------------------------------------------------------------===//
13
14#ifndef FLANG_RT_UNITTESTS_RUNTIME_CRASHHANDLERFIXTURE_H_
15#define FLANG_RT_UNITTESTS_RUNTIME_CRASHHANDLERFIXTURE_H_
16#include <gtest/gtest.h>
17
18struct CrashHandlerFixture : testing::Test {
19 void SetUp();
20};
21
22#endif /* FLANG_RT_UNITTESTS_RUNTIME_CRASHHANDLERFIXTURE_H_ */
23

source code of flang-rt/unittests/Runtime/CrashHandlerFixture.h