Files
clang-p2996/clang/test/CodeGen/static-local-union.c
Eli Friedman c98a7add43 Don't crash emitting an initializer for a static local with union type.
This fix just makes sure to construct the global with the appropriate 
type, and fixes up the one user this affects to compensate.

llvm-svn: 52084
2008-06-08 01:23:18 +00:00

5 lines
91 B
C

// RUN: clang -emit-llvm < %s
int a() {static union{int a;} r[2] = {1,2};return r[1].a;}