format-nonlit-1.c, [...]: Use __SIZE_TYPE__ instead of int for type of integers cast to pointers.
* gcc.dg/format-nonlit-1.c, gcc.dg/format-nonlit-2.c: Use __SIZE_TYPE__ instead of int for type of integers cast to pointers. From-SVN: r38119
This commit is contained in:
parent
6c1ce62b50
commit
02428c5d54
|
@ -1,3 +1,9 @@
|
||||||
|
2000-12-07 Joseph S. Myers <jsm28@cam.ac.uk>
|
||||||
|
|
||||||
|
* gcc.dg/format-nonlit-1.c, gcc.dg/format-nonlit-2.c: Use
|
||||||
|
__SIZE_TYPE__ instead of int for type of integers cast to
|
||||||
|
pointers.
|
||||||
|
|
||||||
2000-12-07 Jakub Jelinek <jakub@redhat.com>
|
2000-12-07 Jakub Jelinek <jakub@redhat.com>
|
||||||
|
|
||||||
* g++.old-deja/g++.other/cleanup4.C: New test.
|
* g++.old-deja/g++.other/cleanup4.C: New test.
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
extern int printf (const char *, ...);
|
extern int printf (const char *, ...);
|
||||||
|
|
||||||
void
|
void
|
||||||
foo (char *s, int i)
|
foo (char *s, __SIZE_TYPE__ i)
|
||||||
{
|
{
|
||||||
printf ((const char *)i, i); /* { dg-warning "argument types" "non-literal" } */
|
printf ((const char *)i, i); /* { dg-warning "argument types" "non-literal" } */
|
||||||
printf (s, i); /* { dg-warning "argument types" "non-literal" } */
|
printf (s, i); /* { dg-warning "argument types" "non-literal" } */
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
extern int printf (const char *, ...);
|
extern int printf (const char *, ...);
|
||||||
|
|
||||||
void
|
void
|
||||||
foo (char *s, int i)
|
foo (char *s, __SIZE_TYPE__ i)
|
||||||
{
|
{
|
||||||
printf ((const char *)i, i); /* { dg-warning "argument types" "non-literal" } */
|
printf ((const char *)i, i); /* { dg-warning "argument types" "non-literal" } */
|
||||||
printf (s, i); /* { dg-warning "argument types" "non-literal" } */
|
printf (s, i); /* { dg-warning "argument types" "non-literal" } */
|
||||||
|
|
Loading…
Reference in New Issue