summaryrefslogtreecommitdiffhomepage
path: root/dev/LibC++/__abi+unreachable.cc
blob: 428b7450612254822e17390d3b7fdd10aec4b65e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* -------------------------------------------

 Copyright (C) 2025 Amlal El Mahrouss, Licensed under Apache 2.0.

------------------------------------------- */

#include <LibC++/__abi.h>
#include <LibC++/base_process.h>

static const int32_t __unreachable_code = 34;

extern "C" void __compilerkit_unreachable(void) {
  std::base_process::signal(__unreachable_code);

  while (1)
    ;
}