tests/1910.c
raw| 1 | /* test case for repeated use of agmemread() |
| 2 | * (see test_regression.py:test_1910()) |
| 3 | */ |
| 4 | |
| 5 | #include <assert.h> |
| 6 | #include <graphviz/cgraph.h> |
| 7 | |
| 8 | #ifdef NDEBUG |
| 9 | #error "this code is not intended to be compiled with assertions disabled" |
| 10 | #endif |
| 11 | |
| 12 | int main(void) { |
| 13 | |
| 14 | /* we should be able to parse a trivial graph successfully twice */ |
| 15 | assert(agmemread("digraph { a -> b }")); |
| 16 | assert(agmemread("digraph { a -> b }")); |
| 17 | |
| 18 | return 0; |
| 19 | } |