[cfe-commits] r92725 - in /cfe/trunk/test/Analysis: casts.c misc-ps.m

Zhongxing Xu xuzhongxing at gmail.com
Tue Jan 5 03:49:21 PST 2010


Author: zhongxingxu
Date: Tue Jan  5 05:49:21 2010
New Revision: 92725

URL: http://llvm.org/viewvc/llvm-project?rev=92725&view=rev
Log:
Move test case to a more appropriate file.

Modified:
    cfe/trunk/test/Analysis/casts.c
    cfe/trunk/test/Analysis/misc-ps.m

Modified: cfe/trunk/test/Analysis/casts.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Analysis/casts.c?rev=92725&r1=92724&r2=92725&view=diff

==============================================================================
--- cfe/trunk/test/Analysis/casts.c (original)
+++ cfe/trunk/test/Analysis/casts.c Tue Jan  5 05:49:21 2010
@@ -45,3 +45,13 @@
  if(!cl)
     cl = 'a';
 }
+
+// Test cast VariableSizeArray to pointer does not crash.
+void *memcpy(void *, void const *, unsigned long);
+typedef unsigned char Byte;
+void doit(char *data, int len) {
+    if (len) {
+        Byte buf[len];
+        memcpy(buf, data, len);
+    }
+}

Modified: cfe/trunk/test/Analysis/misc-ps.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Analysis/misc-ps.m?rev=92725&r1=92724&r2=92725&view=diff

==============================================================================
--- cfe/trunk/test/Analysis/misc-ps.m (original)
+++ cfe/trunk/test/Analysis/misc-ps.m Tue Jan  5 05:49:21 2010
@@ -793,12 +793,3 @@
   [p testBadArg:y]; // expected-warning{{Pass-by-value argument in message expression is undefined}}
 }
 
-// Test cast VariableSizeArray to pointer does not crash.
-void *memcpy(void *, void const *, unsigned long);
-typedef unsigned char Byte;
-void doit(char *data, int len) {
-    if (len) {
-        Byte buf[len];
-        memcpy(buf, data, len);
-    }
-}





More information about the cfe-commits mailing list