diff options
author | Chris Lattner <sabre@nondot.org> | 2003-04-25 19:49:36 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-04-25 19:49:36 +0000 |
commit | 8f81c1087101843506e9fadb28adf3ba87b18e05 (patch) | |
tree | c9eb1c729bc721fdc7cb1395e75bee4cd97cb743 /test/CFrontend | |
parent | 32a521ec567592f5abb9eb45ab1d70cf7af827fa (diff) | |
download | external_llvm-8f81c1087101843506e9fadb28adf3ba87b18e05.zip external_llvm-8f81c1087101843506e9fadb28adf3ba87b18e05.tar.gz external_llvm-8f81c1087101843506e9fadb28adf3ba87b18e05.tar.bz2 |
Fix bugs in testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5946 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CFrontend')
-rw-r--r-- | test/CFrontend/2002-07-29-Casts.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/CFrontend/2002-07-29-Casts.c b/test/CFrontend/2002-07-29-Casts.c index bb45571..6c83336 100644 --- a/test/CFrontend/2002-07-29-Casts.c +++ b/test/CFrontend/2002-07-29-Casts.c @@ -7,8 +7,8 @@ main(int argc, char** argv) { char c1; short s1, ssf1, ssd1; - uint8_t ubs0; - int8_t bs0; + unsigned char ubs0; + signed char bs0; unsigned char ubc0, uc2; unsigned short us2, usf1, usd1; int ic3, is3, sif1, sid1; @@ -24,8 +24,8 @@ main(int argc, char** argv) s1 = (short) (argc >= 3)? atoi(argv[2]) : -769; /* 0xf7ff = -769 */ ubc0 = (unsigned char) c1; /* 100 = 'd' */ - ubs0 = (uint8_t) s1; /* 0xff = 255 */ - bs0 = (int8_t) s1; /* 0xff = -1 */ + ubs0 = (unsigned char) s1; /* 0xff = 255 */ + bs0 = (signed char) s1; /* 0xff = -1 */ uc2 = (unsigned char) c1; /* 100 = 'd' */ us2 = (unsigned short) s1; /* 0xf7ff = 64767 */ |