diff options
author | Eli Friedman <eli.friedman@gmail.com> | 2013-07-16 20:19:04 +0000 |
---|---|---|
committer | Eli Friedman <eli.friedman@gmail.com> | 2013-07-16 20:19:04 +0000 |
commit | 64f23918992bc99d8a0b4418f9787bc78cfd2975 (patch) | |
tree | b3acfa8ad31015df19334d4ef4c9180d36734879 /clang/test/CodeGen | |
parent | c97d83dd3b7e9f970b9e441d48c50bad47713a4f (diff) | |
download | bcm5719-llvm-64f23918992bc99d8a0b4418f9787bc78cfd2975.tar.gz bcm5719-llvm-64f23918992bc99d8a0b4418f9787bc78cfd2975.zip |
Fix crash on complex constant zero.
Fixes <rdar://problem/14442543>.
llvm-svn: 186452
Diffstat (limited to 'clang/test/CodeGen')
-rw-r--r-- | clang/test/CodeGen/complex.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/test/CodeGen/complex.c b/clang/test/CodeGen/complex.c index e99a7152813..206db253caa 100644 --- a/clang/test/CodeGen/complex.c +++ b/clang/test/CodeGen/complex.c @@ -95,3 +95,6 @@ double t7(double _Complex c) { void t8() { __complex__ int *x = &(__complex__ int){1}; } + +const _Complex double test9const = 0; +_Complex double test9func() { return test9const; } |