fehler54 (should already work now)
authorMatthias Braun <matze@braunis.de>
Wed, 1 Aug 2007 13:04:53 +0000 (13:04 +0000)
committerMatthias 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]

diff --git a/ir/be/test/fehler54.c b/ir/be/test/fehler54.c
new file mode 100644 (file)
index 0000000..99a0518
--- /dev/null
@@ -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;
+}