projects
/
libfirm
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bf27182
)
fehler54 (should already work now)
author
Matthias Braun
<matze@braunis.de>
Wed, 1 Aug 2007 13:04:53 +0000
(13:04 +0000)
committer
Matthias Braun
<matze@braunis.de>
Wed, 1 Aug 2007 13:04:53 +0000
(13:04 +0000)
[r15409]
ir/be/test/fehler54.c
[new file with mode: 0644]
patch
|
blob
diff --git a/ir/be/test/fehler54.c
b/ir/be/test/fehler54.c
new file mode 100644
(file)
index 0000000..
99a0518
--- /dev/null
+++ b/
ir/be/test/fehler54.c
@@ -0,0
+1,23
@@
+/*$ -fno-inline $*/
+/* 64 bit problems in beabi (should be worked around by now) */
+#include <assert.h>
+
+extern int func1(int version, const char *path, unsigned long long *ptr)
+{
+ (void) version;
+ (void) path;
+ (void) ptr;
+ return 42;
+}
+
+extern inline int func2(const char *path, unsigned long long dev)
+{
+ return func1(1, path, &dev);
+}
+
+int main()
+{
+ int res = func2("bla", 1);
+ assert(res == 42);
+ return 0;
+}