pr35842.c: New.
authorKai Tietz <kai.tietz@onevision.com>
Mon, 7 Apr 2008 12:40:43 +0000 (12:40 +0000)
committerKai Tietz <ktietz@gcc.gnu.org>
Mon, 7 Apr 2008 12:40:43 +0000 (14:40 +0200)
PR/35842
* gcc.dg/torture/pr35842.c: New.

From-SVN: r133980

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/torture/pr35842.c [new file with mode: 0755]

index d4e38e8dae53f97a15af2aa60162812658194d84..a71cae2d0a3b05c84997b9dd4c89c85248b91db3 100644 (file)
@@ -1,3 +1,8 @@
+2008-04-07  Kai Tietz  <kai.tietz@onevision.com>
+
+       PR/35842
+        * gcc.dg/torture/pr35842.c: New.
+
 2008-04-07  Eric Botcazou  <ebotcazou@adacore.com>
 
        * gnat.dg/array4.adb: New test.
diff --git a/gcc/testsuite/gcc.dg/torture/pr35842.c b/gcc/testsuite/gcc.dg/torture/pr35842.c
new file mode 100755 (executable)
index 0000000..05b26d8
--- /dev/null
@@ -0,0 +1,12 @@
+/* { dg-do compile { target { *-*-mingw* } } } */
+extern __attribute__((dllimport)) const int SSL_ImplementedCiphers[];
+extern void SSL_GetCipherSuiteInfo(int cipherSuite);
+void nsCipherInfo(int SSL_NumImplementedCiphers)
+{
+  int i;
+  for (i = 0; i < SSL_NumImplementedCiphers; ++i)
+    {
+      const int i_id = SSL_ImplementedCiphers[i];
+      SSL_GetCipherSuiteInfo(i_id);
+    }
+}