opt_version.c revision 1.1
1/* $NetBSD: opt_version.c,v 1.1 2021/10/23 20:23:27 rillig Exp $ */
2/* $FreeBSD$ */
3
4/*
5 * Tests for the option '--version', which outputs the program version and
6 * exits immediately.
7 */
8
9#indent input
10When the option '--version' is given, any other options are ignored.
11Therefore the source file, if given, can contain arbitrary text that
12even might generate syntax errors when given to a C compiler.
13#indent end
14
15#indent run --version
16FreeBSD indent 2.0
17#indent end
18