]> granicus.if.org Git - clang/commitdiff
Add 'expected-warning' for braces around scalar initializer
authorTed Kremenek <kremenek@apple.com>
Mon, 27 Oct 2008 22:00:16 +0000 (22:00 +0000)
committerTed Kremenek <kremenek@apple.com>
Mon, 27 Oct 2008 22:00:16 +0000 (22:00 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@58280 91177308-0d34-0410-b5e6-96231b3b80d8

test/Analysis/stack-addr-ps.c

index 9a8a8f78e9d9158f7cc9c8218e6cfe7749e4fca4..d0294aa9d30dfbeb76469e99f65b8be98fc72dc7 100644 (file)
@@ -19,6 +19,6 @@ int* f3(int x, int *y) {
 }
 
 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}}
 }