projects
/
libfirm
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
80d11d0
)
eccp optimized the assert away!?!, anyway I wanna fix the real error first...
author
Matthias Braun
<matze@braunis.de>
Tue, 2 Sep 2008 09:23:51 +0000
(09:23 +0000)
committer
Matthias Braun
<matze@braunis.de>
Tue, 2 Sep 2008 09:23:51 +0000
(09:23 +0000)
[r21637]
ir/be/test/fehler142.c
patch
|
blob
|
history
diff --git
a/ir/be/test/fehler142.c
b/ir/be/test/fehler142.c
index
790028f
..
095399b
100644
(file)
--- a/
ir/be/test/fehler142.c
+++ b/
ir/be/test/fehler142.c
@@
-1,15
+1,10
@@
-#include <assert.h>
-
-void foo(float zNear, float zFar)
+float foo(float zNear, float zFar)
{
- float v;
float depth = zFar - zNear;
- v = -2 * zFar * zNear / depth;
- assert(v < 0);
+ return -2 * zFar * zNear / depth;
}
int main(void) {
- foo(4, 2048);
- return 0;
+ return foo(4, 2048) >= 0;
}