[cfe-commits] r136037 - in /cfe/trunk/test/CodeGen: 2002-07-29-Casts.c 2003-08-18-SigSetJmp.c

Eric Christopher echristo at apple.com
Mon Jul 25 18:12:27 PDT 2011


Author: echristo
Date: Mon Jul 25 20:12:27 2011
New Revision: 136037

URL: http://llvm.org/viewvc/llvm-project?rev=136037&view=rev
Log:
These tests use standard headers and so need ms extensions with MSVC headers.
Use the driver instead of just clang -cc1.

Modified:
    cfe/trunk/test/CodeGen/2002-07-29-Casts.c
    cfe/trunk/test/CodeGen/2003-08-18-SigSetJmp.c

Modified: cfe/trunk/test/CodeGen/2002-07-29-Casts.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGen/2002-07-29-Casts.c?rev=136037&r1=136036&r2=136037&view=diff
==============================================================================
--- cfe/trunk/test/CodeGen/2002-07-29-Casts.c (original)
+++ cfe/trunk/test/CodeGen/2002-07-29-Casts.c Mon Jul 25 20:12:27 2011
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 -emit-llvm %s  -o /dev/null
+// RUN: %clang -S -emit-llvm %s  -o /dev/null
 
 #include <stdlib.h>
 #include <stdio.h>
@@ -19,25 +19,25 @@
   unsigned long    ulf1, uld1;
   float    f1;
   double   d1;
-  
+
   /* Test integer to integer conversions */
-  
+
   c1 = (char)  (argc >= 2)? atoi(argv[1]) : 0xff64; /* 100 = 'd' */
   s1 = (short) (argc >= 3)? atoi(argv[2]) : -769;   /* 0xf7ff = -769 */
-  
+
   ubc0 = (unsigned char) c1;                      /* 100 = 'd' */
   ubs0 = (unsigned char) s1;                            /* 0xff = 255 */
   bs0  = (signed char) s1;                             /* 0xff = -1 */
-  
+
   uc2 = (unsigned char) c1;                       /* 100 = 'd' */
   us2 = (unsigned short) s1;                      /* 0xf7ff = 64767 */
-  
+
   ic3 = (int) c1;                                 /* 100 = 'd' */
   is3 = (int) s1;                                 /* 0xfffff7ff = -769 */
-  
+
   uic4 = (unsigned int) c1;                       /*  100 = 'd' */
   uis4 = (unsigned int) s1;                       /* 0xfffff7ff = 4294966527 */
-  
+
   printf("ubc0 = '%c'\n", ubc0);
   printf("ubs0 = %u\n",   ubs0);
   printf("bs0  = %d\n",   bs0);
@@ -49,38 +49,38 @@
   printf("is3  = %d\n",   is3);
   printf("uic4 = '%c'\n", uic4);
   printf("uis4 = %u\n",   uis4);
-  
+
   /* Test floating-point to integer conversions */
   f1 = (float)  (argc >= 4)? atof(argv[3]) : 1.0;
   d1 =          (argc >= 5)? atof(argv[4]) : 2.0;
-  
+
   usf1 = (unsigned short) f1;
   usd1 = (unsigned short) d1;
   uif1 = (unsigned int) f1;
   uid1 = (unsigned int) d1;
   ulf1 = (unsigned long) f1;
   uld1 = (unsigned long) d1;
-  
+
   ssf1 = (short) f1;
   ssd1 = (short) d1;
   sif1 = (int) f1;
   sid1 = (int) d1;
   slf1 = (long) f1;
   sld1 = (long) d1;
-  
+
   printf("usf1 = %u\n", usf1);
   printf("usd1 = %u\n", usd1);
   printf("uif1 = %u\n", uif1);
   printf("uid1 = %u\n", uid1);
   printf("ulf1 = %u\n", ulf1);
   printf("uld1 = %u\n", uld1);
-  
+
   printf("ssf1 = %d\n", ssf1);
   printf("ssd1 = %d\n", ssd1);
   printf("sif1 = %d\n", sif1);
   printf("sid1 = %d\n", sid1);
   printf("slf1 = %d\n", slf1);
   printf("sld1 = %d\n", sld1);
-  
+
   return 0;
 }

Modified: cfe/trunk/test/CodeGen/2003-08-18-SigSetJmp.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGen/2003-08-18-SigSetJmp.c?rev=136037&r1=136036&r2=136037&view=diff
==============================================================================
--- cfe/trunk/test/CodeGen/2003-08-18-SigSetJmp.c (original)
+++ cfe/trunk/test/CodeGen/2003-08-18-SigSetJmp.c Mon Jul 25 20:12:27 2011
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 -emit-llvm %s  -o /dev/null
+// RUN: %clang -S -emit-llvm %s  -o /dev/null
 
 
 #include <setjmp.h>





More information about the cfe-commits mailing list