xref: /freebsd/usr.bin/unifdef/tests/unifdef_test.sh (revision 66fd12cf4896eb08ad8e7a2627537f84ead84dd3)
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