Added compound literal test case.

llvm-svn: 58279
This commit is contained in:
Ted Kremenek 2008-10-27 21:57:17 +00:00
parent ce2a938186
commit c1739912c8
1 changed files with 3 additions and 0 deletions

View File

@ -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}}
}