1# This file is part of grecs  -*- Autotest -*-
2# Copyright (C) 2011-2016 Sergey Poznyakoff
3#
4# Grecs is free software; you can redistribute it and/or modify
5# it under the terms of the GNU General Public License as published by
6# the Free Software Foundation; either version 3, or (at your option)
7# any later version.
8#
9# Grecs is distributed in the hope that it will be useful,
10# but WITHOUT ANY WARRANTY; without even the implied warranty of
11# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12# GNU General Public License for more details.
13#
14# You should have received a copy of the GNU General Public License
15# along with Grecs.  If not, see <http://www.gnu.org/licenses/>.
16
17AT_SETUP([C comments in BIND-style parser])
18AT_KEYWORDS([parser bind bind00])
19
20GRECS_TEST([
21zone "foo" {
22	type delegation-only;
23};
24
25/*zone "net" {
26	type delegation-only;
27};*/
28/**/
29zone "bar" {
30	type hint;
31};
32/* comment line */
33zone "baz" {
34	type delegation-only;
35};
36],
37[gcffmt -type=bind],
38[0],
39[.zone="foo".type: "delegation-only"
40.zone="bar".type: "hint"
41.zone="baz".type: "delegation-only"
42])
43
44AT_CLEANUP
45