Add compound literal with empty initializer (just to test the analyzer handles it).
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@58470
91177308-0d34-0410-b5e6-
96231b3b80d8
void* compound_literal(int x) {
if (x)
return &(unsigned short){((unsigned short)0x22EF)}; // expected-warning{{Address of stack memory}} expected-warning{{braces around scalar initializer}}
-
+
+ int* array[] = {};
struct s { int z; double y; int w; };
- return &((struct s){ 2, 0.4, 5 * 8 });
+ return &((struct s){ 2, 0.4, 5 * 8 }); // expected-warning{{Address of stack memory}}
}