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
689eae09
Commit
689eae09
authored
Jul 11, 2007
by
Matthias Braun
Browse files
now fehler39 exposes the original bug again :)
[r15019]
parent
e2192b74
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/be/test/fehler39.c
View file @
689eae09
/* register allocator fails to resolve IMul Constraints correctly */
#ifdef __GNUC__
#define NO_INLINE __attribute__((noinline))
#else
#define NO_INLINE __declspec(noinline)
#endif
int
LightSpriteCreate
()
{
return
42
;
}
void
LightSpritePosition
(
int
x
,
int
y
,
int
z
)
{
(
void
)
x
;
(
void
)
y
;
(
void
)
z
;
}
#include
<stdlib.h>
#include
<stdio.h>
typedef
struct
{
...
...
@@ -30,9 +14,9 @@ static void GenerateExplosionFromExplosionPointer(EXPLOSIONTYPE* pExplosion)
short
sX
=
pExplosion
->
sX
;
short
sY
=
pExplosion
->
sY
;
if
(
pExplosion
->
iLightID
=
LightSpriteCreate
())
if
(
pExplosion
->
iLightID
=
rand
())
{
LightSpritePosition
(
pExplosion
->
iLightID
,
sX
/
10
,
sY
/
10
);
printf
(
"Blup: %d %d %d
\n
"
,
pExplosion
->
iLightID
,
sX
/
10
,
sY
/
10
);
}
}
...
...
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