tests/2598_1/cgraph_app.c
raw| 1 | /// \file |
| 2 | /// \brief stub application for testing libcgraph’s installed CMake target |
| 3 | /// |
| 4 | /// See ../test_regression.py::test_2598_1. Note, this code is only expected to |
| 5 | /// be compilable, not to run and give a reasonable result. |
| 6 | |
| 7 | // confirm we can #include libcgraph |
| 8 | #include <cgraph.h> |
| 9 | |
| 10 | int main(void) { |
| 11 | // confirm we can use something from libcgraph |
| 12 | Agdesc_t desc = {0}; |
| 13 | Agdisc_t disc = {0}; |
| 14 | (void)agopen(0, desc, &disc); |
| 15 | return 0; |
| 16 | } |