1
0
mirror of https://git.savannah.gnu.org/git/gnulib.git synced 2025-08-16 01:22:18 +03:00
Files
gnulib/tests/test-sys_file.c
Bruno Haible d44db1a87a sys_file tests: Avoid warning.
* tests/test-sys_file.c (main): Add a default clause to the switch
statement.
2017-04-22 14:43:23 +02:00

38 lines
996 B
C

/* Test of <sys/file.h> substitute.
Copyright (C) 2009-2017 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */
/* Written by Eric Blake <ebb9@byu.net>, 2009. */
#include <config.h>
#include <sys/file.h>
int
main (void)
{
switch (0)
{
case LOCK_SH:
case LOCK_EX:
case LOCK_NB:
case LOCK_UN:
;
default:
;
}
return 0;
}