Blame gl/tests/test-stdio.c

Packit 549fdc
/* Test of <stdio.h> substitute.
Packit 549fdc
   Copyright (C) 2007, 2009-2016 Free Software Foundation, Inc.
Packit 549fdc
Packit 549fdc
   This program is free software: you can redistribute it and/or modify
Packit 549fdc
   it under the terms of the GNU General Public License as published by
Packit 549fdc
   the Free Software Foundation; either version 3 of the License, or
Packit 549fdc
   (at your option) any later version.
Packit 549fdc
Packit 549fdc
   This program is distributed in the hope that it will be useful,
Packit 549fdc
   but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit 549fdc
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
Packit 549fdc
   GNU General Public License for more details.
Packit 549fdc
Packit 549fdc
   You should have received a copy of the GNU General Public License
Packit 549fdc
   along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
Packit 549fdc
Packit 549fdc
/* Written by Bruno Haible <bruno@clisp.org>, 2007.  */
Packit 549fdc
Packit 549fdc
#include <config.h>
Packit 549fdc
Packit 549fdc
#include <stdio.h>
Packit 549fdc
Packit 549fdc
#include "verify.h"
Packit 549fdc
Packit 549fdc
/* Check that the various SEEK_* macros are defined.  */
Packit 549fdc
int sk[] = { SEEK_CUR, SEEK_END, SEEK_SET };
Packit 549fdc
Packit 549fdc
/* Check that NULL can be passed through varargs as a pointer type,
Packit 549fdc
   per POSIX 2008.  */
Packit 549fdc
verify (sizeof NULL == sizeof (void *));
Packit 549fdc
Packit 549fdc
/* Check that the types are all defined.  */
Packit 549fdc
fpos_t t1;
Packit 549fdc
off_t t2;
Packit 549fdc
size_t t3;
Packit 549fdc
ssize_t t4;
Packit 549fdc
va_list t5;
Packit 549fdc
Packit 549fdc
int
Packit 549fdc
main (void)
Packit 549fdc
{
Packit 549fdc
  return 0;
Packit 549fdc
}