diff options
author | bstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-12-20 21:46:40 +0000 |
---|---|---|
committer | bstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-12-20 21:46:40 +0000 |
commit | b08e05713256fbd8a2a414b56c82d1651aadb985 (patch) | |
tree | 31bad5c89150cded27efde181d7eee13ce078edb /gcc/testsuite/gcc.c-torture/compile | |
parent | 79bd8aab8f7dedd773f23cbf2c109d9f77cd47d7 (diff) | |
download | gcc-b08e05713256fbd8a2a414b56c82d1651aadb985.tar.gz |
2010-12-20 Basile Starynkevitch <basile@starynkevitch.net>
MELT branch merged with trunk rev 168094
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/melt-branch@168096 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/gcc.c-torture/compile')
-rw-r--r-- | gcc/testsuite/gcc.c-torture/compile/20101217-1.c | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.c-torture/compile/20101217-1.c b/gcc/testsuite/gcc.c-torture/compile/20101217-1.c new file mode 100644 index 00000000000..c4eef0ed464 --- /dev/null +++ b/gcc/testsuite/gcc.c-torture/compile/20101217-1.c @@ -0,0 +1,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; +} |