Revert "[llvm] Improve llvm.objectsize computation by computing GEP, alloca and mallo...
[llvm-project.git] / clang / test / CodeGen / 2009-04-28-UnionArrayCrash.c
blob4296b918cbcc8983bd1d6a1e1c22406378829d77
1 // RUN: %clang_cc1 -emit-llvm %s -o -
2 // PR4082
3 union U {
4 int I;
5 double F;
6 };
8 union U arr[] = { { .I = 4 }, { .F = 123.} };
9 union U *P = &arr[0];