* gcc.dg/const-elim-1.c: xfail for xtensa.
[official-gcc.git] / gcc / testsuite / gcc.dg / 20020122-2.c
blob2115a22ad6a8b788442a8a64648324e594ce2392
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-*-* } } */
8 extern int access( char* );
9 extern int a();
10 char* foocp();
12 void
13 _KDE_IceGetPoValidAuthIndices (protocol_name, num_indices_ret, indices_ret)
14 const char *protocol_name;
15 int *num_indices_ret;
16 int *indices_ret;
18 int auth_file;
19 char *filename;
20 int index_ret, i;
22 if (!(filename = foocp ()))
23 return;
25 if (access (filename))
26 return;
28 if (auth_file = access (filename))
29 return;
31 for (;;)
33 if (strcmp (protocol_name, protocol_name) == 0 )
35 for (i = 0; i < *num_indices_ret; i++)
36 if (index_ret == indices_ret[i])
37 break;