diff options
Diffstat (limited to 'packages/Python/lldbsuite/test/functionalities/load_unload/a.cpp')
-rw-r--r-- | packages/Python/lldbsuite/test/functionalities/load_unload/a.cpp | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/packages/Python/lldbsuite/test/functionalities/load_unload/a.cpp b/packages/Python/lldbsuite/test/functionalities/load_unload/a.cpp new file mode 100644 index 000000000000..235749aef74a --- /dev/null +++ b/packages/Python/lldbsuite/test/functionalities/load_unload/a.cpp @@ -0,0 +1,22 @@ +//===-- a.c -----------------------------------------------------*- C++ -*-===// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +extern int b_function (); + +int a_init() +{ + return 234; +} + +int a_global = a_init(); + +extern "C" int +a_function () +{ + return b_function (); +} |