projects
/
platform
/
upstream
/
coreutils.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
(inittables): Use toupper rather than
[platform/upstream/coreutils.git]
/
lib
/
t-fpending.c
1
/* Ensure that __fpending works. */
2
3
#include <config.h>
4
#include <stdio.h>
5
#include <stdlib.h>
6
7
#include "__fpending.h"
8
9
int
10
main ()
11
{
12
if (__fpending (stdout) != 0)
13
abort ();
14
15
fputs ("foo", stdout);
16
if (__fpending (stdout) != 3)
17
abort ();
18
19
fflush (stdout);
20
if (__fpending (stdout) != 0)
21
abort ();
22
23
exit (0);
24
}