summaryrefslogtreecommitdiffstats
path: root/test/CodeGen/2007-04-05-UnPackedStruct.c
blob: e7a8df62394733ed59ef1f511998597c42438a03 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// RUN: %clang_cc1 %s -emit-llvm -o -


enum {
  tA = 0,
  tB = 1
};

struct MyStruct {
  unsigned long A;
  void * B;
};

void bar(){
struct MyStruct MS = { tB, 0 };
}