Mercurial > hg > CbC > CbC_gcc
comparison gcc/testsuite/gcc.c-torture/compile/20101217-1.c @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | |
children | 1830386684a0 |
comparison
equal
deleted
inserted
replaced
68:561a7518be6b | 111:04ced10e8804 |
---|---|
1 /* 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 } |