diff options
-rw-r--r-- | test/Analysis/stack-addr-ps.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/Analysis/stack-addr-ps.c b/test/Analysis/stack-addr-ps.c index 9bf8954110..7eead3bb20 100644 --- a/test/Analysis/stack-addr-ps.c +++ b/test/Analysis/stack-addr-ps.c @@ -21,8 +21,9 @@ int* f3(int x, int *y) { 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}} } |