diff options
author | Zack Weinberg <zack@codesourcery.com> | 2004-01-24 05:27:45 +0000 |
---|---|---|
committer | Zack Weinberg <zack@codesourcery.com> | 2004-01-24 05:27:45 +0000 |
commit | 40d61107a342c3a9516954751cb1843fc44bf150 (patch) | |
tree | defe7275247113eab8fdf947d0bc423499b6cb47 | |
parent | a7418b7014ed8068445de0dcdc314fff37015335 (diff) |
* gcc.dg/builtins-30.c: Move dg-warning marks to the proper lines.
git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@76482 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r-- | gcc/testsuite/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/builtins-30.c | 12 |
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); } |