summaryrefslogtreecommitdiff
path: root/tests/usr.bin/indent/opt_version.c
blob: e8ffabddb0ac4b7567d4df9349ca69c67e630af1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* $NetBSD: opt_version.c,v 1.4 2022/04/24 09:04:12 rillig Exp $ */

/*
 * Tests for the option '--version', which outputs the program version and
 * exits immediately.
 */

//indent input
When the option '--version' is given, any other options are ignored.
Therefore the source file, if given, can contain arbitrary text that
even might generate syntax errors when given to a C compiler.
//indent end

//indent run --version
NetBSD indent 2.1
//indent end