commit | 17c0cb022db9f6a77802a2c61e1ff5a67a0d5630 | [log] [tgz] |
---|---|---|
author | Chris Lattner <sabre@nondot.org> | Thu Jan 03 06:36:51 2008 +0000 |
committer | Chris Lattner <sabre@nondot.org> | Thu Jan 03 06:36:51 2008 +0000 |
tree | 966f96b5035e0ae816dfb2b18b32c46154733353 | |
parent | 9e920f38a2b2fb3c019f518c82d798452cd8b3b4 [diff] [blame] |
Fix a crash reported by Seo Sanghyeon. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@45530 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/CodeGen/exprs.c b/test/CodeGen/exprs.c index c57817d..502cb83 100644 --- a/test/CodeGen/exprs.c +++ b/test/CodeGen/exprs.c
@@ -6,3 +6,11 @@ int x=sizeof(zxcv); int y=__alignof__(zxcv); + +void *test(int *i) { + short a = 1; + i += a; + i + a; + a + i; +} +