xref: /netbsd-src/tests/usr.bin/indent/opt_version.c (revision 47306038c7d906b62edca1fd252c0e0d0772f5a0)
1 /* $NetBSD: opt_version.c,v 1.4 2022/04/24 09:04:12 rillig Exp $ */
2 
3 /*
4  * Tests for the option '--version', which outputs the program version and
5  * exits immediately.
6  */
7 
8 //indent input
9 When the option '--version' is given, any other options are ignored.
10 Therefore the source file, if given, can contain arbitrary text that
11 even might generate syntax errors when given to a C compiler.
12 //indent end
13 
14 //indent run --version
15 NetBSD indent 2.1
16 //indent end
17