summaryrefslogtreecommitdiff
path: root/clang/test/CodeGen/2003-01-30-UnionInit.c
blob: 98aee727b4ecd45c3ca2ced955edbeeb630056e1 (about) (plain)
1
2
3
4
5
6
7
8
// RUN: %clang_cc1 -emit-llvm %s -o /dev/null

union foo {
  struct { char A, B; } X;
  int C;
};

union foo V = { {1, 2} };