[cfe-commits] r58280 - /cfe/trunk/test/Analysis/stack-addr-ps.c
Ted Kremenek
kremenek at apple.com
Mon Oct 27 15:00:16 PDT 2008
Author: kremenek
Date: Mon Oct 27 17:00:16 2008
New Revision: 58280
URL: http://llvm.org/viewvc/llvm-project?rev=58280&view=rev
Log:
Add 'expected-warning' for braces around scalar initializer
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=58280&r1=58279&r2=58280&view=diff
==============================================================================
--- cfe/trunk/test/Analysis/stack-addr-ps.c (original)
+++ cfe/trunk/test/Analysis/stack-addr-ps.c Mon Oct 27 17:00:16 2008
@@ -19,6 +19,6 @@
}
unsigned short* compound_literal() {
- return &(unsigned short){((unsigned short)0x22EF)}; // expected-warning{{Address of stack memory}}
+ return &(unsigned short){((unsigned short)0x22EF)}; // expected-warning{{Address of stack memory}} expected-warning{{braces around scalar initializer}}
}
More information about the cfe-commits
mailing list