aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/builtins-30.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/gcc.dg/builtins-30.c')
-rw-r--r--gcc/testsuite/gcc.dg/builtins-30.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/testsuite/gcc.dg/builtins-30.c b/gcc/testsuite/gcc.dg/builtins-30.c
index c910fe4..9ed0be5 100644
--- a/gcc/testsuite/gcc.dg/builtins-30.c
+++ b/gcc/testsuite/gcc.dg/builtins-30.c
@@ -6,21 +6,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 ()
+double cos ()
{ /* { dg-warning "shadowing built-in" } */
return strtod ("nan", 0);
}
/* the right number, but the wrong type, arguments... */
-float nanf (foo)
+double sin (foo)
int foo UNUSED; /* { dg-warning "shadowing built-in" } */
{
return strtod ("nan", 0);
}
/* or too many arguments. */
-long double nanl (foo, bar)
- const char *foo UNUSED; /* { dg-warning "shadowing built-in" } */
+long double cosl (foo, bar)
+ long double foo UNUSED; /* { dg-warning "shadowing built-in" } */
int bar UNUSED;
{
return strtod ("nan", 0);