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