1*9ff1f2acSchristos /* Id: test-err.c,v 1.1 2015/10/11 21:12:55 schwarze Exp */
2*9ff1f2acSchristos /*
3*9ff1f2acSchristos * Copyright (c) 2015 Ingo Schwarze <schwarze@openbsd.org>
4*9ff1f2acSchristos *
5*9ff1f2acSchristos * Permission to use, copy, modify, and distribute this software for any
6*9ff1f2acSchristos * purpose with or without fee is hereby granted, provided that the above
7*9ff1f2acSchristos * copyright notice and this permission notice appear in all copies.
8*9ff1f2acSchristos *
9*9ff1f2acSchristos * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
10*9ff1f2acSchristos * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
11*9ff1f2acSchristos * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
12*9ff1f2acSchristos * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
13*9ff1f2acSchristos * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
14*9ff1f2acSchristos * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
15*9ff1f2acSchristos * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
16*9ff1f2acSchristos */
17*9ff1f2acSchristos
18*9ff1f2acSchristos #include <err.h>
19*9ff1f2acSchristos
20*9ff1f2acSchristos int
main(void)21*9ff1f2acSchristos main(void)
22*9ff1f2acSchristos {
23*9ff1f2acSchristos warnx("%d. warnx", 1);
24*9ff1f2acSchristos warn("%d. warn", 2);
25*9ff1f2acSchristos err(0, "%d. err", 3);
26*9ff1f2acSchristos /* NOTREACHED */
27*9ff1f2acSchristos return 1;
28*9ff1f2acSchristos }
29