llvm-for-llvmta/tools/clang/test/CodeGenCXX/debug-info-ms-bitfields.cpp

11 lines
315 B
C++
Raw Permalink Normal View History

2022-04-25 13:02:35 +02:00
// 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)