aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gcc/testsuite/ChangeLog4
-rw-r--r--gcc/testsuite/gcc.dg/builtins-30.c12
2 files changed, 10 insertions, 6 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index ecca656f31c..370c1aa63e3 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,7 @@
+2004-01-23 Zack Weinberg <zack@codesourcery.com>
+
+ * gcc.dg/builtins-30.c: Move dg-warning marks to the proper lines.
+
2004-01-24 Joseph S. Myers <jsm@polyomino.org.uk>
* gcc.dg/c90-array-lval-7.c, gcc.dg/c99-array-lval-7.c: New tests.
diff --git a/gcc/testsuite/gcc.dg/builtins-30.c b/gcc/testsuite/gcc.dg/builtins-30.c
index a2d7433b4c7..c910fe4e7e6 100644
--- a/gcc/testsuite/gcc.dg/builtins-30.c
+++ b/gcc/testsuite/gcc.dg/builtins-30.c
@@ -7,21 +7,21 @@ extern double strtod (const char *, char **);
/* A built-in function may be overridden by an old-style definition
specifying too few arguments... */
double nan ()
-{
- return strtod ("nan", 0); /* { dg-warning "shadowing built-in" } */
+{ /* { dg-warning "shadowing built-in" } */
+ return strtod ("nan", 0);
}
/* the right number, but the wrong type, arguments... */
float nanf (foo)
- int foo UNUSED;
+ int foo UNUSED; /* { dg-warning "shadowing built-in" } */
{
- return strtod ("nan", 0); /* { dg-warning "shadowing built-in" } */
+ return strtod ("nan", 0);
}
/* or too many arguments. */
long double nanl (foo, bar)
- const char *foo UNUSED;
+ const char *foo UNUSED; /* { dg-warning "shadowing built-in" } */
int bar UNUSED;
{
- return strtod ("nan", 0); /* { dg-warning "shadowing built-in" } */
+ return strtod ("nan", 0);
}