xref: /freebsd/usr.bin/unifdef/tests/unifdef_test.sh (revision ba3c1f5972d7b90feb6e6da47905ff2757e0fe57)
1#
2# Copyright (c) 2023 Klara, Inc.
3#
4# SPDX-License-Identifier: BSD-2-Clause
5#
6
7atf_test_case hash_comment
8hash_comment_head() {
9	atf_set descr "multiline comment follows directive"
10}
11hash_comment_body() {
12	cat >f <<EOF
13#if FOO
14#endif /*
15*/
16EOF
17	atf_check -o file:f unifdef <f
18}
19
20atf_init_test_cases() {
21	atf_add_test_case hash_comment
22}
23