Commit a2b1e914 by Janis Johnson Committed by Janis Johnson

builtin-prefetch-1.c: Add checks for variable argument list.

        * gcc.c-torture/execute/builtin-prefetch-1.c: Add checks for
        variable argument list.

From-SVN: r47742
parent e83d297b
2001-12-06 Janis Johnson <janis187@us.ibm.com>
* gcc.c-torture/execute/builtin-prefetch-1.c: Add checks for
variable argument list.
2001-12-06 Zack Weinberg <zack@codesourcery.com> 2001-12-06 Zack Weinberg <zack@codesourcery.com>
* gcc.c-torture/execute/memcheck: Delete entire directory. * gcc.c-torture/execute/memcheck: Delete entire directory.
......
...@@ -49,11 +49,21 @@ good_expr (int *p) ...@@ -49,11 +49,21 @@ good_expr (int *p)
__builtin_prefetch (p, 1 + 0, 1 + 2); __builtin_prefetch (p, 1 + 0, 1 + 2);
} }
void
good_vararg (int *p)
{
__builtin_prefetch (p, 0, 3);
__builtin_prefetch (p, 0);
__builtin_prefetch (p, 1);
__builtin_prefetch (p);
}
int int
main () main ()
{ {
good_const (arr); good_const (arr);
good_enum (arr); good_enum (arr);
good_expr (arr); good_expr (arr);
good_vararg (arr);
exit (0); exit (0);
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment