* gcc.dg/builtins-30.c: Move dg-warning marks to the proper lines.
authorZack Weinberg <zack@codesourcery.com>
Sat, 24 Jan 2004 05:27:45 +0000 (05:27 +0000)
committerZack Weinberg <zack@gcc.gnu.org>
Sat, 24 Jan 2004 05:27:45 +0000 (05:27 +0000)
From-SVN: r76482

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/builtins-30.c

index ecca656f31c0f0cc6f914cd922bae20faa4ebe13..370c1aa63e3c5daf6b53d6030f3454e5b4d2748e 100644 (file)
@@ -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.
index a2d7433b4c725ed66495bd97b0a40b087225b505..c910fe4e7e6683d3e8c3019a6f56604bc68a8bb3 100644 (file)
@@ -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);
 }