src/libsysprof-capture/tests/test-cplusplus.cpp
raw| 1 | /* |
| 2 | * Copyright 2024 Simon McVittie |
| 3 | * SPDX-License-Identifier: GPL-3.0-or-later |
| 4 | */ |
| 5 | |
| 6 | #include <sysprof-capture.h> |
| 7 | |
| 8 | #undef _NDEBUG |
| 9 | #include <assert.h> |
| 10 | |
| 11 | #ifdef __GNUC__ |
| 12 | #define UNUSED __attribute__((__unused__)) |
| 13 | #else |
| 14 | #define UNUSED |
| 15 | #endif |
| 16 | |
| 17 | int |
| 18 | main (UNUSED int argc, |
| 19 | UNUSED char *argv[]) |
| 20 | { |
| 21 | assert (sysprof_getpagesize () > 0); |
| 22 | return 0; |
| 23 | } |
| 24 |