[cfe-commits] r58279 - /cfe/trunk/test/Analysis/stack-addr-ps.c
Ted Kremenek
kremenek at apple.com
Mon Oct 27 14:57:17 PDT 2008
Author: kremenek
Date: Mon Oct 27 16:57:17 2008
New Revision: 58279
URL: http://llvm.org/viewvc/llvm-project?rev=58279&view=rev
Log:
Added compound literal test case.
Modified:
cfe/trunk/test/Analysis/stack-addr-ps.c
Modified: cfe/trunk/test/Analysis/stack-addr-ps.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Analysis/stack-addr-ps.c?rev=58279&r1=58278&r2=58279&view=diff
==============================================================================
--- cfe/trunk/test/Analysis/stack-addr-ps.c (original)
+++ cfe/trunk/test/Analysis/stack-addr-ps.c Mon Oct 27 16:57:17 2008
@@ -18,4 +18,7 @@
return y; // expected-warning{{Address of stack memory associated with local variable 'w' returned.}}
}
+unsigned short* compound_literal() {
+ return &(unsigned short){((unsigned short)0x22EF)}; // expected-warning{{Address of stack memory}}
+}
More information about the cfe-commits
mailing list