]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
format-nonlit-1.c, [...]: Use __SIZE_TYPE__ instead of int for type of integers cast...
authorJoseph Myers <jsm28@cam.ac.uk>
Thu, 7 Dec 2000 23:03:21 +0000 (23:03 +0000)
committerJoseph Myers <jsm28@gcc.gnu.org>
Thu, 7 Dec 2000 23:03:21 +0000 (23:03 +0000)
* 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

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/format-nonlit-1.c
gcc/testsuite/gcc.dg/format-nonlit-2.c

index b458ead85ffe3b1940563e20cca09cd95ff85c79..0b5ed35cce399c242e22b3c2dd9b0166605b2fdb 100644 (file)
@@ -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>
 
        * g++.old-deja/g++.other/cleanup4.C: New test.
index dfcd84b073b788639e5c054b1d93993c461e28db..e40bf088bbcede4a35d2d3514ed8f17703e357c4 100644 (file)
@@ -6,7 +6,7 @@
 extern int printf (const char *, ...);
 
 void
-foo (char *s, int i)
+foo (char *s, __SIZE_TYPE__ i)
 {
   printf ((const char *)i, i); /* { dg-warning "argument types" "non-literal" } */
   printf (s, i); /* { dg-warning "argument types" "non-literal" } */
index c20ed08a591a34cc0784a6d2d1f2dde07c1b23cc..9c3eee8ced66699cfe5b3655945fd08d7d54b94b 100644 (file)
@@ -6,7 +6,7 @@
 extern int printf (const char *, ...);
 
 void
-foo (char *s, int i)
+foo (char *s, __SIZE_TYPE__ i)
 {
   printf ((const char *)i, i); /* { dg-warning "argument types" "non-literal" } */
   printf (s, i); /* { dg-warning "argument types" "non-literal" } */