[BACK]Return to token_funcname.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / tests / usr.bin / indent

File: [cvs.NetBSD.org] / src / tests / usr.bin / indent / Attic / token_funcname.c (download)

Revision 1.1, Mon Oct 18 22:30:34 2021 UTC (2 years, 6 months ago) by rillig
Branch: MAIN

tests/indent: condense the token tests

This reduces the number of files in the test directory. It also allows
the tests to be read from top to bottom, looking at only a single file.

Since t_options.awk complains about files that don't have any test case
at all, add some test for each token kind. Most of the tests had
previously been effectively empty.

/* $NetBSD: token_funcname.c,v 1.1 2021/10/18 22:30:34 rillig Exp $ */
/* $FreeBSD$ */

/*
 * Tests for function names.
 */

#indent input
void
function(void)
{
	func();
	(func)();
	func(1, 2, 3);
}
#indent end

#indent run-equals-input