summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/compile/20101217-1.c
blob: c4eef0ed464509430d8e2bd31ffd1ad9660ab36f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/* Testcase provided by HUAWEI.  */
#include <stdio.h>
int main()
{
        int cur_k;
        int cur_j=0;
        int cur_i=28;
        unsigned char temp_data[8];
        unsigned int Data_Size=20;

        for (cur_k=0;cur_j<7;cur_j++,cur_i++) {
                if (cur_j%2==0) {
                        temp_data[cur_k++]=0;
                }
                if (cur_k==7) {
                        for (;cur_k>0;cur_k--) {
                                if (cur_k>2) {
                                        if ((temp_data[7-cur_k]=='n' || temp_data[7-cur_k]=='N' ) && (temp_data[7-cur_k+1]=='a' || temp_data[7-cur_k+1]=='A' )) {
                                                break;
                                        }
                                }
                                if (cur_k==1) {
                                        if (temp_data[7-cur_k]=='n' || temp_data[7-cur_k]=='N' ) {
                                                break;
                                        }
                                }
                        }
                        if (cur_k==7) {
                        } else {
                                if (cur_k>0)
                                        printf("dfjk");
                        }
                }
        }
return 0;
}