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 | 12d152f61ccef9a2c0372ba39be7cf416c6e1a9e (patch) | |
tree | 7d21224bb6675ef549db60334f6cf18fb1f3193b /test/CodeGen/conditional-gnu-ext.c | |
parent | 3e41d60eb627dc227c770f1c1c87d06909cf05fd (diff) |
fix rdar://6586493, a bug in codegen of the GNU
missing-?:-true-value extension.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@64505 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/conditional-gnu-ext.c')
-rw-r--r-- | test/CodeGen/conditional-gnu-ext.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/CodeGen/conditional-gnu-ext.c b/test/CodeGen/conditional-gnu-ext.c index d4ae330949..c3ff2bdccc 100644 --- a/test/CodeGen/conditional-gnu-ext.c +++ b/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; +} + |