| 1 | /* |
| 2 | This file is part of GOTCHA. For copyright information see the COPYRIGHT |
| 3 | file in the top level directory, or at |
| 4 | https://github.com/LLNL/gotcha/blob/master/COPYRIGHT |
| 5 | This program is free software; you can redistribute it and/or modify it under |
| 6 | the terms of the GNU Lesser General Public License (as published by the Free |
| 7 | Software Foundation) version 2.1 dated February 1999. This program is |
| 8 | distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; |
| 9 | without even the IMPLIED WARRANTY OF MERCHANTABILITY or FITNESS FOR A PARTICULAR |
| 10 | PURPOSE. See the terms and conditions of the GNU Lesser General Public License |
| 11 | for more details. You should have received a copy of the GNU Lesser General |
| 12 | Public License along with this program; if not, write to the Free Software |
| 13 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 14 | */ |
| 15 | |
| 16 | #include <assert.h> |
| 17 | #include <elf.h> |
| 18 | #include <errno.h> |
| 19 | #include <link.h> |
| 20 | #include <stdio.h> |
| 21 | #include <sys/mman.h> |
| 22 | |
| 23 | #include "sampleLib.h" |
| 24 | |
| 25 | void dbg() {} |
| 26 | int main() { |
| 27 | sample_init(); |
| 28 | int check_val = retX(9); |
| 29 | assert(check_val == 10); |
| 30 | return 0; |
| 31 | } |