From a2b1e914592aebb8c495c7a7d5bc408d4cf368d3 Mon Sep 17 00:00:00 2001 From: Janis Johnson Date: Fri, 7 Dec 2001 01:44:48 +0000 Subject: [PATCH] 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 --- gcc/testsuite/ChangeLog | 5 +++++ .../gcc.c-torture/execute/builtin-prefetch-1.c | 10 ++++++++++ 2 files changed, 15 insertions(+) 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); }