diff options
author | xleroy <xleroy@fca1b0fc-160b-0410-b1d3-a4f43f01ea2e> | 2010-07-08 08:57:32 +0000 |
---|---|---|
committer | xleroy <xleroy@fca1b0fc-160b-0410-b1d3-a4f43f01ea2e> | 2010-07-08 08:57:32 +0000 |
commit | 118c148ec89dc0b53bb377cf637cfdcd800f06e5 (patch) | |
tree | 7dd709dee9152e1dd98cc220c221793efedf6107 /test/regression/casts2.c | |
parent | 0f5acbd9a9fbb0f1bfc1500cf76524d6e7a5e702 (diff) | |
download | compcert-118c148ec89dc0b53bb377cf637cfdcd800f06e5.tar.gz compcert-118c148ec89dc0b53bb377cf637cfdcd800f06e5.zip |
Bug in cparser/AddCasts.ml.
git-svn-id: https://yquem.inria.fr/compcert/svn/compcert/trunk@1376 fca1b0fc-160b-0410-b1d3-a4f43f01ea2e
Diffstat (limited to 'test/regression/casts2.c')
-rw-r--r-- | test/regression/casts2.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/test/regression/casts2.c b/test/regression/casts2.c new file mode 100644 index 00000000..b7620764 --- /dev/null +++ b/test/regression/casts2.c @@ -0,0 +1,16 @@ +#include <stdint.h> +#include <stdio.h> + +uint16_t func_46(void) +{ + int8_t l_48 = 0xA0; + return l_48; +} + +int main(void) +{ + int32_t t_3 = 0; + t_3 = func_46(); + printf("t_3 = %d\n", t_3); + return 0; +} |