OSDN Git Service

* gcc.dg/altivec-21.c: Use dg-error only for ilp32.
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.dg / 20020122-2.c
1 /* This test was supplied with PR target/5379.  It caused the compiler
2    to get a segmentation fault.  */
3   
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" } { "" } } */
8
9 extern int access( char* );
10 extern int a();
11 char* foocp();
12
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;
18 {
19     int auth_file;
20     char *filename;
21     int index_ret, i;
22
23     if (!(filename = foocp ()))
24         return;
25
26     if (access (filename))
27         return;
28
29     if (auth_file = access (filename))
30         return;
31
32     for (;;)
33     {
34         if (strcmp (protocol_name, protocol_name) == 0 )
35         {
36             for (i = 0; i < *num_indices_ret; i++)
37                 if (index_ret == indices_ret[i])
38                     break;
39         }
40     }
41 }
42