__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;
+}
+