]> granicus.if.org Git - clang/commitdiff
Added missing 'expected-warning'
authorTed Kremenek <kremenek@apple.com>
Fri, 31 Oct 2008 00:20:13 +0000 (00:20 +0000)
committerTed Kremenek <kremenek@apple.com>
Fri, 31 Oct 2008 00:20:13 +0000 (00:20 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@58481 91177308-0d34-0410-b5e6-96231b3b80d8

test/Analysis/stack-addr-ps.c

index a95cb6bb892c2076a852d963380e2e9bc447e2d7..bc046cd7135907fd0f839ab823d0e7c8096b3218 100644 (file)
@@ -30,6 +30,6 @@ void* compound_literal(int x, int y) {
     
   
   void* p = &((struct s){ 42, 0.4, x ? 42 : 0 });
-  return p;
+  return p; // expected-warning{{Address of stack memory}}
 }