Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Zwinkau
libfirm
Commits
212455a1
Commit
212455a1
authored
Aug 08, 2008
by
Michael Beck
Browse files
- more -f combo tests
[r21058]
parent
0baec171
Changes
3
Hide whitespace changes
Inline
Side-by-side
ir/be/test/fehler118.c
View file @
212455a1
/*$ -f combo $*/
#include
<stdlib.h>
char
*
test
(
char
*
name
)
{
...
...
@@ -5,13 +6,11 @@ char *test(char *name) {
int
plen
;
int
min_part
=
3
;
do
{
p
=
strrchr
(
name
,
'.'
);
p
=
p
?
p
+
1
:
name
;
p
=
name
;
while
(
*
p
)
{
plen
=
strcspn
(
p
,
'.'
)
;
plen
=
3
;
p
+=
plen
;
if
(
plen
>
min_part
)
trunc
=
p
-
1
;
if
(
*
p
)
p
++
;
}
}
while
(
trunc
==
NULL
&&
--
min_part
!=
0
);
return
p
;
...
...
ir/be/test/fehler122.c
View file @
212455a1
/*$ -f combo $*/
int
*
zptr
;
#define swap(lv1, lv2) \
...
...
ir/be/test/fehler130.c
0 → 100644
View file @
212455a1
/*$ -f combo $*/
static
int
bi_valid
;
static
int
bi_buf
=
0
;
int
outbuf
;
#define Buf_size (8 * 2*sizeof(char))
#define put_byte(c) {outbuf=(unsigned char)(c); }
#define put_short(w) \
{ if (outcnt > 0) { \
outbuf = (unsigned char) (w); \
}\
}
void
send_bits
(
int
value
)
{
if
(
bi_valid
>
0
)
{
bi_buf
|=
bi_valid
;
if
(
outbuf
>
0
)
{
outbuf
=
bi_buf
;
}
bi_buf
=
value
;
}
}
int
main
()
{
return
0
;
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment