xref: /netbsd-src/external/bsd/flex/dist/tests/no_bison_stub.c (revision 463ae347b383ca644b1399e7e5228310d0bdf969)
1*463ae347Schristos /* This stub will be used when Bison is not available on the user's host. */
2*463ae347Schristos 
3*463ae347Schristos /*  This file is part of flex.
4*463ae347Schristos  *
5*463ae347Schristos  *  Redistribution and use in source and binary forms, with or without
6*463ae347Schristos  *  modification, are permitted provided that the following conditions
7*463ae347Schristos  *  are met:
8*463ae347Schristos  *
9*463ae347Schristos  *  1. Redistributions of source code must retain the above copyright
10*463ae347Schristos  *     notice, this list of conditions and the following disclaimer.
11*463ae347Schristos  *  2. Redistributions in binary form must reproduce the above copyright
12*463ae347Schristos  *     notice, this list of conditions and the following disclaimer in the
13*463ae347Schristos  *     documentation and/or other materials provided with the distribution.
14*463ae347Schristos  *
15*463ae347Schristos  *  Neither the name of the University nor the names of its contributors
16*463ae347Schristos  *  may be used to endorse or promote products derived from this software
17*463ae347Schristos  *  without specific prior written permission.
18*463ae347Schristos  *
19*463ae347Schristos  *  THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
20*463ae347Schristos  *  IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
21*463ae347Schristos  *  WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
22*463ae347Schristos  *  PURPOSE.
23*463ae347Schristos  */
24*463ae347Schristos #include <stdio.h>
25*463ae347Schristos 
main(int argc,char * argv[])26*463ae347Schristos int main (int argc, char *argv[])
27*463ae347Schristos {
28*463ae347Schristos     (void)argc;
29*463ae347Schristos     (void)argv;
30*463ae347Schristos     puts(
31*463ae347Schristos         "This test requires Bison. Install Bison and re-run \"configure && make check\"\n"
32*463ae347Schristos         "to perform this test. (This file is stub code.)"
33*463ae347Schristos     );
34*463ae347Schristos 
35*463ae347Schristos     /* Exit status for a skipped test */
36*463ae347Schristos     return 77;
37*463ae347Schristos }
38*463ae347Schristos 
39*463ae347Schristos /* vim:set tabstop=8 softtabstop=4 shiftwidth=4: */
40