| 1 | /* |
| 2 | * Copyright (C) 2018 Francis Deslauriers <francis.deslauriers@efficios.com> |
| 3 | * |
| 4 | * SPDX-License-Identifier: LGPL-2.1-or-later |
| 5 | * |
| 6 | */ |
| 7 | |
| 8 | #include "test_class.hpp" |
| 9 | |
| 10 | volatile int not_a_function = 0; |
| 11 | |
| 12 | void test_cxx_function() __attribute__((noinline)); |
| 13 | void test_cxx_function() |
| 14 | { |
| 15 | not_a_function += 1; |
| 16 | } |
| 17 | |
| 18 | int main() |
| 19 | { |
| 20 | test_class my_test_class; |
| 21 | /* Call test function. */ |
| 22 | test_cxx_function(); |
| 23 | |
| 24 | /* Call test method. */ |
| 25 | my_test_class.test_method(); |
| 26 | return 0; |
| 27 | } |