re PR c++/71973 (c++ handles built-in functions inconsistently)
authorJakub Jelinek <jakub@redhat.com>
Mon, 21 Nov 2016 18:55:11 +0000 (19:55 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Mon, 21 Nov 2016 18:55:11 +0000 (19:55 +0100)
PR c++/71973
* g++.dg/torture/pr53321.C (size_t): Use __SIZE_TYPE__ instead of
long unsigned int.
* g++.dg/torture/pr63512.C (::strlen): Use __SIZE_TYPE__ instead of
unsigned long.

From-SVN: r242677

gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/torture/pr53321.C
gcc/testsuite/g++.dg/torture/pr63512.C

index 7dbfcaa..d672a47 100644 (file)
@@ -1,3 +1,11 @@
+2016-11-21  Jakub Jelinek  <jakub@redhat.com>
+
+       PR c++/71973
+       * g++.dg/torture/pr53321.C (size_t): Use __SIZE_TYPE__ instead of
+       long unsigned int.
+       * g++.dg/torture/pr63512.C (::strlen): Use __SIZE_TYPE__ instead of
+       unsigned long.
+
 2016-11-20  Jeff Law  <law@redhat.com>
 
        PR target/25128
index 40a2de7..4dd5af8 100644 (file)
@@ -2,7 +2,7 @@
 // { dg-require-profiling "-fprofile-generate" }
 // { dg-options "-fprofile-generate" }
 
-typedef long unsigned int size_t;
+typedef __SIZE_TYPE__ size_t;
 
 extern "C"
 {
index 9549014..1c1899d 100644 (file)
@@ -2,7 +2,7 @@
 
 extern "C" {
 void __assert_fail ();
-unsigned long strlen (const char *);
+__SIZE_TYPE__ strlen (const char *);
 }
 class A
 {