[NFC] Fixed indentation issue (#116942)
[llvm-project.git] / libunwind / test / aix_runtime_link.pass.cpp
blobdeb192c07981eb0c76794e452eba0337d20fab35
1 //===----------------------------------------------------------------------===//
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 // Test that libunwind loads successfully independently of libc++abi with
10 // runtime linking on AIX.
12 // REQUIRES: target={{.+}}-aix{{.*}}
13 // ADDITIONAL_COMPILE_FLAGS: -Wl,-brtl
15 #include <unwind.h>
16 extern "C" int printf(const char *, ...);
17 int main(void) {
18 void *fp = (void *)&_Unwind_Backtrace;
19 printf("%p\n", fp);