Merge from mainline (gomp-merge-2005-02-26).
[official-gcc.git] / gcc / testsuite / gcc.dg / 20020122-2.c
blobde92bd82880c1da80f786aeae0659622b47093e2
1 /* This test was supplied with PR target/5379. It caused the compiler
2 to get a segmentation fault. */
4 /* { dg-do compile } */
5 /* { dg-options "-O2 -fprefetch-loop-arrays -w" } */
6 /* { dg-options "-O2 -fprefetch-loop-arrays -march=athlon" { target i?86-*-* } } */
7 /* { dg-skip-if "" { i?86-*-* } { "-m64" } { "" } } */
9 extern int access( char* );
10 extern int a();
11 char* foocp();
13 void
14 _KDE_IceGetPoValidAuthIndices (protocol_name, num_indices_ret, indices_ret)
15 const char *protocol_name;
16 int *num_indices_ret;
17 int *indices_ret;
19 int auth_file;
20 char *filename;
21 int index_ret, i;
23 if (!(filename = foocp ()))
24 return;
26 if (access (filename))
27 return;
29 if (auth_file = access (filename))
30 return;
32 for (;;)
34 if (strcmp (protocol_name, protocol_name) == 0 )
36 for (i = 0; i < *num_indices_ret; i++)
37 if (index_ret == indices_ret[i])
38 break;