implement codegen for real/imag.  TODO: imag of non-complex.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@41376 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/CodeGen/complex.c b/test/CodeGen/complex.c
index 3b5437c..8a496ea 100644
--- a/test/CodeGen/complex.c
+++ b/test/CodeGen/complex.c
@@ -26,4 +26,6 @@
   g1 = g1 - g2;
   g1 = g1 * g2;
   g1 = +-~g1;
+
+  double Gr = __real g1;
 }