diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index d182cda9bd4..43a0c1ee7a4 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2001-12-06 Janis Johnson + + * gcc.c-torture/execute/builtin-prefetch-1.c: Add checks for + variable argument list. + 2001-12-06 Zack Weinberg * gcc.c-torture/execute/memcheck: Delete entire directory. diff --git a/gcc/testsuite/gcc.c-torture/execute/builtin-prefetch-1.c b/gcc/testsuite/gcc.c-torture/execute/builtin-prefetch-1.c index 0d32f16db34..d6b7b599fdb 100644 --- a/gcc/testsuite/gcc.c-torture/execute/builtin-prefetch-1.c +++ b/gcc/testsuite/gcc.c-torture/execute/builtin-prefetch-1.c @@ -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); }