diff options
author | Chris Lattner <sabre@nondot.org> | 2009-02-13 23:35:32 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-02-13 23:35:32 +0000 |
commit | cd7bc144f6ff20061c13a13d21bfce2b16340f09 (patch) | |
tree | 6463f169b037426ea3ee963f141543449e564877 /clang/test | |
parent | b9063fc1b344e8112e52223f7914837ba8d0a021 (diff) | |
download | bcm5719-llvm-cd7bc144f6ff20061c13a13d21bfce2b16340f09.tar.gz bcm5719-llvm-cd7bc144f6ff20061c13a13d21bfce2b16340f09.zip |
fix rdar://6586493, a bug in codegen of the GNU
missing-?:-true-value extension.
llvm-svn: 64505
Diffstat (limited to 'clang/test')
-rw-r--r-- | clang/test/CodeGen/conditional-gnu-ext.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/test/CodeGen/conditional-gnu-ext.c b/clang/test/CodeGen/conditional-gnu-ext.c index d4ae330949f..c3ff2bdccc5 100644 --- a/clang/test/CodeGen/conditional-gnu-ext.c +++ b/clang/test/CodeGen/conditional-gnu-ext.c @@ -4,3 +4,9 @@ int foo(int x, short y) { return x ?: y; } + +// rdar://6586493 +float test(float x, int Y) { + return Y != 0 ? : x; +} + |