OSDN Git Service

PR/35842
authorktietz <ktietz@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 7 Apr 2008 12:40:43 +0000 (12:40 +0000)
committerktietz <ktietz@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 7 Apr 2008 12:40:43 +0000 (12:40 +0000)
* gcc.dg/torture/pr35842.c: New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@133980 138bc75d-0d04-0410-961f-82ee72b054a4

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

index d4e38e8..a71cae2 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.
 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);
+    }
+}