diff options
| author | Nuno Lopes <nunoplopes@sapo.pt> | 2008-06-04 19:15:45 +0000 |
|---|---|---|
| committer | Nuno Lopes <nunoplopes@sapo.pt> | 2008-06-04 19:15:45 +0000 |
| commit | 7bd6e58ddc9f91db4f9ce39eb953e00334f78fd2 (patch) | |
| tree | f83d90fc3484752c5685751b4183df234f3ba651 /clang/test/CodeGen | |
| parent | 28bcfec325775f63dda9450314babd2f3bbee856 (diff) | |
| download | bcm5719-llvm-7bd6e58ddc9f91db4f9ce39eb953e00334f78fd2.tar.gz bcm5719-llvm-7bd6e58ddc9f91db4f9ce39eb953e00334f78fd2.zip | |
fix crash when codegening 'cond ? lhs : call-to-void-func()'
llvm-svn: 51958
Diffstat (limited to 'clang/test/CodeGen')
| -rw-r--r-- | clang/test/CodeGen/conditional.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/clang/test/CodeGen/conditional.c b/clang/test/CodeGen/conditional.c index d3e5c0b9384..29ad7867938 100644 --- a/clang/test/CodeGen/conditional.c +++ b/clang/test/CodeGen/conditional.c @@ -30,3 +30,15 @@ void test6(); void test7(int); void* test8() {return 1 ? test6 : test7;} + +void _efree(void *ptr); + +void _php_stream_free3() +{ + (1 ? free(0) : _efree(0)); +} + +void _php_stream_free4() +{ + 1 ? _efree(0) : free(0); +} |

