summaryrefslogtreecommitdiffstats
path: root/test/CodeGenCXX/debug-info-ms-bitfields.cpp
blob: e42330143bba0f1f14e2987d6467eaeeaedef116 (plain)
1
2
3
4
5
6
7
8
9
10
// RUN: %clang_cc1 -triple x86_64-pc-win32 -debug-info-kind=limited -gcodeview %s -emit-llvm -o - | FileCheck %s

#pragma pack(1)
struct S {
  char : 8;
  short   : 8;
  short x : 8;
} s;

// CHECK: !DIDerivedType(tag: DW_TAG_member, name: "x", {{.*}}, size: 8, offset: 16, flags: DIFlagBitField, extraData: i64 8)