Remove -O1 in favour of making llvm-gcc-4.2 a bit
[oota-llvm.git] / test / CFrontend / 2002-07-29-Casts.c
index bb45571f91069e5a88c8ec23320b26cccc67d6a8..6794e80b5e3e71392486800e5953f41c62b172b0 100644 (file)
@@ -1,3 +1,5 @@
+// RUN: %llvmgcc -S %s -o - | llvm-as -f -o /dev/null
+
 #include <stdlib.h>
 #include <stdio.h>
 #include <sys/types.h>
@@ -7,14 +9,14 @@ 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;
-  uint     uic4, uis4, uif1, uid1;
+  unsigned int     uic4, uis4, uif1, uid1;
   long     slf1, sld1;
-  ulong    ulf1, uld1;
+  unsigned long    ulf1, uld1;
   float    f1;
   double   d1;
   
@@ -24,8 +26,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 */