From: Kai Tietz Date: Mon, 7 Apr 2008 12:40:43 +0000 (+0000) Subject: pr35842.c: New. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=cd035e343a0a5c5930bba6d8584072dcce27a1aa;p=gcc.git pr35842.c: New. PR/35842 * gcc.dg/torture/pr35842.c: New. From-SVN: r133980 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index d4e38e8dae5..a71cae2d0a3 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2008-04-07 Kai Tietz + + PR/35842 + * gcc.dg/torture/pr35842.c: New. + 2008-04-07 Eric Botcazou * 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 index 00000000000..05b26d84c11 --- /dev/null +++ b/gcc/testsuite/gcc.dg/torture/pr35842.c @@ -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); + } +}