projects
/
libfirm
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Assertion in the compound initialisation code regarding wchar_t arrays initialised...
[libfirm]
/
ir
/
be
/
test
/
kahansum.c
diff --git
a/ir/be/test/kahansum.c
b/ir/be/test/kahansum.c
index
5ef0745
..
79d6744
100644
(file)
--- a/
ir/be/test/kahansum.c
+++ b/
ir/be/test/kahansum.c
@@
-9,4
+9,12
@@
float kahanSum(const float A[], int n) {
sum = T;
}
return sum;
-}
\ No newline at end of file
+}
+
+int main()
+{
+ float test[] = { 1,2,3,4,5,6,7,8,9};
+ printf("Result: %f\n", kahanSum(test, sizeof(test)/sizeof(float)));
+
+ return 0;
+}