Check prototypes for float types testcase.
authorJustin Seyster <jseyster@cs.sunysb.edu>
Tue, 7 Sep 2010 22:24:22 +0000 (18:24 -0400)
committerJustin Seyster <jseyster@cs.sunysb.edu>
Tue, 7 Sep 2010 22:24:22 +0000 (18:24 -0400)
test/float-types.xml
test/plugin-float-types.c

index 1deb6a43bad2db57bff20f81f6c3b88c5039ee1d..629baf878ade718624226ac2c40a748b8fbab86d 100644 (file)
       128 advice in binary128 (0.33333333333333333334, 0.33333333333333333334)
       quad:    0.33333333333333333334
     </output>
+    <prototypes>
+      void _advice_128(signed char *, long double, long double);
+      void _advice_32(signed char *, float, float);
+      void _advice_64(signed char *, double, double);
+      void _advice_all(signed char *, ALL_FP_T, ALL_FP_T);
+    </prototypes>
   </run>
 </testcase>
index e6902e148409b984bcbcf246bf76fa4dbab2b1bd..643e27be72ce36f8129a0c4a29a25327a8b11846 100644 (file)
@@ -38,6 +38,22 @@ static unsigned int plugin_float()
   return 0;
 }
 
+void aop_finish()
+{
+  const char *header;
+
+  fprintf (stderr, "FINISH HIM!\n");
+
+  header = aop_get_arg_value("header");
+
+  if (header != NULL) {
+    int res;
+    res = aop_write_c_header(header, "_FLOAT_HEADER_", NULL, NULL);
+    if (res != 0)
+      perror(header);
+  }
+}
+
 AOP_MAIN_PROTO aop_main()
 {
   aop_register_pass("float", plugin_float);