mirror of
https://gcc.gnu.org/git/gcc.git
synced 2024-12-03 16:54:27 +08:00
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:
parent
e83d297b10
commit
a2b1e91459
@ -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.
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user