commit | 5bf72024051b667998e1c8eeb4cdaa786b4cf858 | [log] [tgz] |
---|---|---|
author | Chris Lattner <sabre@nondot.org> | Tue Oct 30 22:53:42 2007 +0000 |
committer | Chris Lattner <sabre@nondot.org> | Tue Oct 30 22:53:42 2007 +0000 |
tree | 1588aeb85410ca7e8ff9b487281a8bedf5e5edac | |
parent | 7c6c0fd4f140c7f7dbc69277572c7984beb8e697 [diff] [blame] |
__real__ and __imag__ can be lvalues. Add support to ast and codegen for them. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@43525 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/CodeGen/complex.c b/test/CodeGen/complex.c index 3ac0421..0cc002b 100644 --- a/test/CodeGen/complex.c +++ b/test/CodeGen/complex.c
@@ -37,3 +37,12 @@ g1 = g1 + D; g1 = D + g1; } + +void t1() { + (__real__ cf) = 4.0; +} + +void t2() { + (__imag__ cf) = 4.0; +} +