| 1 |
# This file is part of GNU cflow testsuite. -*- Autotest -*- |
| 2 |
# Copyright (C) 2011-2025 Sergey Poznyakoff |
| 3 |
# |
| 4 |
# This program is free software; you can redistribute it and/or |
| 5 |
# modify it under the terms of the GNU General Public License as |
| 6 |
# published by the Free Software Foundation; either version 3, or (at |
| 7 |
# your option) any later version. |
| 8 |
# |
| 9 |
# This program is distributed in the hope that it will be useful, but |
| 10 |
# WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 12 |
# General Public License for more details. |
| 13 |
# |
| 14 |
# You should have received a copy of the GNU General Public License |
| 15 |
# along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 16 |
|
| 17 |
# Cflow 1.3 sometimes failed to display '|' in tree output. |
| 18 |
# Testcase by Shigio YAMAGUCHI. |
| 19 |
|
| 20 |
AT_SETUP([vertical bar in tree output]) |
| 21 |
AT_KEYWORDS([tree bartest]) |
| 22 |
|
| 23 |
CFLOW_OPT([--tree --number],[ |
| 24 |
CFLOW_CHECK( |
| 25 |
[int main() |
| 26 |
{ |
| 27 |
hello(NULL); |
| 28 |
printf("Hello\n"); |
| 29 |
} |
| 30 |
hello(const char *data) |
| 31 |
{ |
| 32 |
printf("Hello\n"); |
| 33 |
} |
| 34 |
], |
| 35 |
[ 1 +-main() <int main () at prog:1> |
| 36 |
2 +-hello() <hello (const char *data) at prog:6> |
| 37 |
3 | \-printf() |
| 38 |
4 \-printf() |
| 39 |
]) |
| 40 |
]) |
| 41 |
|
| 42 |
AT_CLEANUP |
| 43 |
|
| 44 |
|