~ubuntu-branches/ubuntu/quantal/gnutls26/quantal

« back to all changes in this revision

Viewing changes to gl/tests/test-stdio.c

  • Committer: Bazaar Package Importer
  • Author(s): Steve Langasek
  • Date: 2011-05-20 13:07:18 UTC
  • mfrom: (12.1.11 sid)
  • Revision ID: james.westby@ubuntu.com-20110520130718-db41dybbanzfvlji
Tags: 2.10.5-1ubuntu1
* Merge from Debian unstable, remaining changes:
  - Fix build failure with --no-add-needed.
  - Build for multiarch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* Test of <stdio.h> substitute.
2
 
   Copyright (C) 2007 Free Software Foundation, Inc.
 
2
   Copyright (C) 2007, 2009-2010 Free Software Foundation, Inc.
3
3
 
4
4
   This program is free software: you can redistribute it and/or modify
5
5
   it under the terms of the GNU General Public License as published by
20
20
 
21
21
#include <stdio.h>
22
22
 
 
23
#include "verify.h"
 
24
 
23
25
/* Check that the various SEEK_* macros are defined.  */
24
26
int sk[] = { SEEK_CUR, SEEK_END, SEEK_SET };
25
27
 
 
28
/* Check that NULL can be passed through varargs as a pointer type,
 
29
   per POSIX 2008.  */
 
30
verify (sizeof NULL == sizeof (void *));
 
31
 
 
32
/* Check that the types are all defined.  */
 
33
fpos_t t1;
 
34
off_t t2;
 
35
size_t t3;
 
36
ssize_t t4;
 
37
va_list t5;
 
38
 
26
39
int
27
 
main ()
 
40
main (void)
28
41
{
29
42
  return 0;
30
43
}