OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.c-torture/] [compile/] [20101217-1.c] - Blame information for rev 715

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 688 jeremybenn
/* Testcase provided by HUAWEI.  */
2
#include <stdio.h>
3
int main()
4
{
5
        int cur_k;
6
        int cur_j=0;
7
        int cur_i=28;
8
        unsigned char temp_data[8];
9
        unsigned int Data_Size=20;
10
 
11
        for (cur_k=0;cur_j<7;cur_j++,cur_i++) {
12
                if (cur_j%2==0) {
13
                        temp_data[cur_k++]=0;
14
                }
15
                if (cur_k==7) {
16
                        for (;cur_k>0;cur_k--) {
17
                                if (cur_k>2) {
18
                                        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' )) {
19
                                                break;
20
                                        }
21
                                }
22
                                if (cur_k==1) {
23
                                        if (temp_data[7-cur_k]=='n' || temp_data[7-cur_k]=='N' ) {
24
                                                break;
25
                                        }
26
                                }
27
                        }
28
                        if (cur_k==7) {
29
                        } else {
30
                                if (cur_k>0)
31
                                        printf("dfjk");
32
                        }
33
                }
34
        }
35
return 0;
36
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.