1//===-- Internal header for __stack_chk_fail --------------------*- 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#ifndef LLVM_LIBC_SRC_COMPILER___STACK_CHK_FAIL_H
10#define LLVM_LIBC_SRC_COMPILER___STACK_CHK_FAIL_H
11
12// The compiler will emit calls implicitly to a non-namespaced version.
13// TODO: can we additionally provide a namespaced alias so that tests can
14// explicitly call the namespaced variant rather than the non-namespaced
15// definition?
16extern "C" {
17[[noreturn]] void __stack_chk_fail();
18} // extern "C"
19
20#endif // LLVM_LIBC_SRC_COMPILER___STACK_CHK_FAIL_H
21

source code of libc/src/compiler/__stack_chk_fail.h