[cfe-commits] r92724 - /cfe/trunk/test/Analysis/misc-ps.m
Zhongxing Xu
xuzhongxing at gmail.com
Tue Jan 5 03:47:58 PST 2010
Author: zhongxingxu
Date: Tue Jan 5 05:47:58 2010
New Revision: 92724
URL: http://llvm.org/viewvc/llvm-project?rev=92724&view=rev
Log:
Add test case.
Modified:
cfe/trunk/test/Analysis/misc-ps.m
Modified: cfe/trunk/test/Analysis/misc-ps.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Analysis/misc-ps.m?rev=92724&r1=92723&r2=92724&view=diff
==============================================================================
--- cfe/trunk/test/Analysis/misc-ps.m (original)
+++ cfe/trunk/test/Analysis/misc-ps.m Tue Jan 5 05:47:58 2010
@@ -793,3 +793,12 @@
[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