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
This commit is contained in:
Janis Johnson 2001-12-07 01:44:48 +00:00 committed by Janis Johnson
parent e83d297b10
commit a2b1e91459
2 changed files with 15 additions and 0 deletions

View File

@ -1,3 +1,8 @@
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>
* gcc.c-torture/execute/memcheck: Delete entire directory.

View File

@ -49,11 +49,21 @@ good_expr (int *p)
__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
main ()
{
good_const (arr);
good_enum (arr);
good_expr (arr);
good_vararg (arr);
exit (0);
}