Add test for double call
authorMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Thu, 20 Sep 2007 08:51:23 +0000 (08:51 +0000)
committerMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Thu, 20 Sep 2007 08:51:23 +0000 (08:51 +0000)
[r15890]

ir/be/test/CallingTest.c

index 85e2422..af51422 100644 (file)
@@ -10,12 +10,18 @@ float float_func(void)
   return 13.5f;
 }
 
+double double_func(void)
+{
+  return 13.5;
+}
+
 int main(int argc, char *argv[])
 {
   printf("calltest.c\n");
 
-  printf("  Calling int   function: %d\n", int_func());
-  printf("  Calling float function: %f\n", float_func());
+  printf("  Calling int    function: %d\n", int_func());
+  printf("  Calling float  function: %f\n", float_func());
+  printf("  Calling double function: %f\n", double_func());
 
   return 0;
 }