]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR c++/25632 (ICE with const int copied into two different functions)
authorZdenek Dvorak <dvorakz@suse.cz>
Wed, 11 Jan 2006 11:39:49 +0000 (12:39 +0100)
committerZdenek Dvorak <rakdver@gcc.gnu.org>
Wed, 11 Jan 2006 11:39:49 +0000 (11:39 +0000)
PR c++/25632
* g++.dg/other/pr25632.C: New test.

From-SVN: r109575

gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/other/pr25632.C [new file with mode: 0644]

index be973a022c4462ba614373807512116caec8a77a..d2aa0aa3610138ee848a89dcbb46fd078bd7ec53 100644 (file)
@@ -1,3 +1,8 @@
+2005-01-11  Zdenek Dvorak <dvorakz@suse.cz>
+
+       PR c++/25632
+       * g++.dg/other/pr25632.C: New test.
+
 2006-01-11  Paul Thomas  <pault@gcc.gnu.org>
 
        PR fortran/25730
diff --git a/gcc/testsuite/g++.dg/other/pr25632.C b/gcc/testsuite/g++.dg/other/pr25632.C
new file mode 100644 (file)
index 0000000..a8884f6
--- /dev/null
@@ -0,0 +1,17 @@
+/* PR c++/25632  */
+
+/* { dg-do compile } */
+
+struct sockaddr_un {
+    char sun_path[1];
+};
+const unsigned SI_SUN_HEAD_LEN = (long)(((struct sockaddr_un *)0)->sun_path);
+int SiGetPeerName ()
+{
+    return SI_SUN_HEAD_LEN;
+}
+int SiAccept ()
+{
+    return SI_SUN_HEAD_LEN;
+}
+