mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-09-25 21:10:11 +01:00
16 lines
413 B
C++
16 lines
413 B
C++
// Part of the Carbon Language project, under the Apache License v2.0 with LLVM
|
|
// Exceptions. See /LICENSE for license information.
|
|
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
|
|
|
#include "executable_semantics/common/error.h"
|
|
|
|
#include "gtest/gtest.h"
|
|
|
|
namespace Carbon {
|
|
|
|
TEST(ErrorTest, FatalUserError) {
|
|
ASSERT_DEATH({ FatalUserError() << "test"; }, "ERROR: test\n");
|
|
}
|
|
|
|
} // namespace Carbon
|