2014-04-15 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.dg / 20020122-2.c
blob2499221853172ada051cdad2de7a4bb2b69373b1
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-*-* x86_64-*-* } && ia32 } } } */
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;