summaryrefslogtreecommitdiffstats
path: root/test/FrontendC/2007-04-05-PackedStruct.c
blob: 0d524c489ea859edd8253cc4ccdd6ef178f9e63b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// RUN: %llvmgcc %s -S -o -

#pragma pack(push, 2)

enum {
  tA = 0,
  tB = 1
};

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

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