repo.or.cz
/
netbsd-mini2440.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
No empty .Rs/.Re
[netbsd-mini2440.git]
/
gnu
/
dist
/
gcc4
/
gcc
/
testsuite
/
gcc.c-torture
/
execute
/
printf-1.c
blob
0ffcd5d443b662aeefe58c9ea99dfbb5ff10a770
1
#include <stdio.h>
2
#include <stdlib.h>
3
4
int
5
main
(
void
)
6
{
7
#define test(ret, args...) \
8
printf (args); \
9
if (printf (args) != ret) \
10
abort ();
11
test
(
5
,
"hello"
);
12
test
(
6
,
"hello
\n
"
);
13
test
(
1
,
"a"
);
14
test
(
0
,
""
);
15
test
(
5
,
"%s"
,
"hello"
);
16
test
(
6
,
"%s"
,
"hello
\n
"
);
17
test
(
1
,
"%s"
,
"a"
);
18
test
(
0
,
"%s"
,
""
);
19
test
(
1
,
"%c"
,
'x'
);
20
test
(
7
,
"%s
\n
"
,
"hello
\n
"
);
21
test
(
2
,
"%d
\n
"
,
0
);
22
return
0
;
23
}