add codegen support to union casts
init of static vars still not working. I'll get back to it tomorrow or so


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@62278 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/CodeGen/cast-to-union.c b/test/CodeGen/cast-to-union.c
new file mode 100644
index 0000000..3f33904
--- /dev/null
+++ b/test/CodeGen/cast-to-union.c
@@ -0,0 +1,10 @@
+// RUN: clang -emit-llvm < %s | grep "store i32 351, i32*"
+
+union u { int i; };
+
+void foo() {
+  union u ola = (union u) 351;
+}
+
+// FIXME: not working yet
+// union u w = (union u)2;