commit | 11086fcb654629ac5257a29f2b4f20070c00a83b | [log] [tgz] |
---|---|---|
author | John McCall <rjmccall@apple.com> | Wed Jul 07 05:08:32 2010 +0000 |
committer | John McCall <rjmccall@apple.com> | Wed Jul 07 05:08:32 2010 +0000 |
tree | b934c74bd15817fbabb625ed46920760dc931ff7 | |
parent | 6f9236e76246d1c8b3e52084c729409bc3372d04 [diff] [blame] |
Don't consider casted non-global pointers to be evaluatable. Fixes rdar://problem/8154689 llvm-svn: 107755
diff --git a/clang/test/CodeGen/init.c b/clang/test/CodeGen/init.c index d48e723..c8de99d 100644 --- a/clang/test/CodeGen/init.c +++ b/clang/test/CodeGen/init.c
@@ -40,3 +40,9 @@ .x = value.x }}; } + +// rdar://problem/8154689 +void f6() { + int x; + long ids[] = { (long) &x }; +}