Browse Source

gcc: Add test for parameter-less functions.

* gcc-plugin/tests/task-errors.c (my_task_without_any_parameters,
  my_task_without_any_parameters_gordon): New functions.
Ludovic Courtès 13 years ago
parent
commit
2710050abf
1 changed files with 16 additions and 0 deletions
  1. 16 0
      gcc-plugin/tests/task-errors.c

+ 16 - 0
gcc-plugin/tests/task-errors.c

@@ -78,6 +78,22 @@ void my_task_with_too_many_pointer_params (/* (error "maximum .* exceeded") */
   __attribute__ ((task));
   __attribute__ ((task));
 
 
 
 
+static void my_task_without_any_parameters (void)
+  __attribute__ ((task));
+
+static void my_task_without_any_parameters_gordon (void)
+  __attribute__ ((task_implementation ("gordon", my_task_without_any_parameters)));
+
+void
+my_task_without_any_parameters (void)
+{
+}
+
+void
+my_task_without_any_parameters_gordon (void)
+{
+}
+
 
 
 static void
 static void
 my_task_cpu (int foo, float *bar)
 my_task_cpu (int foo, float *bar)