add test case.

llvm-svn: 67154
This commit is contained in:
Zhongxing Xu 2009-03-18 02:07:30 +00:00
parent d00978bc0d
commit e40de828fc
1 changed files with 15 additions and 0 deletions

View File

@ -104,3 +104,18 @@ void f12(int *list) {
unsigned i = 0;
list[i] = 1;
}
struct s1 {
struct s2 {
int d;
} e;
};
// The binding of a.e.d should not be removed. Test recursive subregion map
// building: a->e, e->d. Only then 'a' could be added to live region roots.
void f13(double timeout) {
struct s1 a;
a.e.d = (long) timeout;
if (a.e.d == 10)
a.e.d = 4;
}