Mercurial > hg > CbC > CbC_gcc
comparison libmudflap/testsuite/libmudflap.c/fail12-frag.c @ 55:77e2b8dfacca gcc-4.4.5
update it from 4.4.3 to 4.5.0
author | ryoma <e075725@ie.u-ryukyu.ac.jp> |
---|---|
date | Fri, 12 Feb 2010 23:39:51 +0900 |
parents | a06113de4d67 |
children |
comparison
equal
deleted
inserted
replaced
52:c156f1bd5cd9 | 55:77e2b8dfacca |
---|---|
1 #include <stdio.h> | 1 #include <stdio.h> |
2 #include <stdlib.h> | 2 #include <stdlib.h> |
3 #include <string.h> | 3 #include <string.h> |
4 int *y; | |
4 int main () | 5 int main () |
5 { | 6 { |
6 int i = 10; | 7 int i = 10; |
7 int *x = (int *) malloc (i * sizeof (int)); | 8 int *x = (int *) malloc (i * sizeof (int)); |
8 | 9 y = x; |
9 while (i--) | 10 while (i--) |
10 { | 11 { |
11 ++x; | 12 ++x; |
12 *x = 0; | 13 *x = 0; |
13 } | 14 } |