[offload] [test] Use test compiler ID rather than host (#124408)
[llvm-project.git] / libc / src / compiler / __stack_chk_fail.h
blob56b6042c37f5dfe11f486a5ebd39dc1927d3f8c9
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 //===----------------------------------------------------------------------===//
9 #ifndef LLVM_LIBC_SRC_COMPILER___STACK_CHK_FAIL_H
10 #define LLVM_LIBC_SRC_COMPILER___STACK_CHK_FAIL_H
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?
16 extern "C" {
17 [[noreturn]] void __stack_chk_fail();
18 } // extern "C"
20 #endif // LLVM_LIBC_SRC_COMPILER___STACK_CHK_FAIL_H