[cfe-commits] r86541 - /cfe/trunk/test/Analysis/ptr-arith.c
Zhongxing Xu
xuzhongxing at gmail.com
Mon Nov 9 05:56:45 PST 2009
Author: zhongxingxu
Date: Mon Nov 9 07:56:44 2009
New Revision: 86541
URL: http://llvm.org/viewvc/llvm-project?rev=86541&view=rev
Log:
update test case.
Modified:
cfe/trunk/test/Analysis/ptr-arith.c
Modified: cfe/trunk/test/Analysis/ptr-arith.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Analysis/ptr-arith.c?rev=86541&r1=86540&r2=86541&view=diff
==============================================================================
--- cfe/trunk/test/Analysis/ptr-arith.c (original)
+++ cfe/trunk/test/Analysis/ptr-arith.c Mon Nov 9 07:56:44 2009
@@ -45,7 +45,7 @@
void f5() {
int x, y;
int *p;
- p = &x + 1; // expected-warning{{Pointer arithmetic done on non array variables means reliance on memory layout, which is dangerous.}}
+ p = &x + 1; // expected-warning{{Pointer arithmetic done on non-array variables means reliance on memory layout, which is dangerous.}}
int a[10];
p = a + 1; // no-warning
More information about the cfe-commits
mailing list