mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-29 12:26:08 +00:00

This revision is revised to update Go-bindings and Release Notes. The original commit message follows. This patch, adds support for DW_AT_alignment[DWARF5] attribute, to be emitted with typdef DIE. When explicit alignment is specified. Patch by Awanish Pandey <Awanish.Pandey@amd.com> Reviewers: aprantl, dblaikie, jini.susan.george, SouraVX, alok, deadalinx Differential Revision: https://reviews.llvm.org/D70111
15 lines
455 B
C++
15 lines
455 B
C++
// Test for debug info related to DW_AT_alignment attribute in the typedef operator
|
|
// Supported: -O0, standalone DI
|
|
// RUN: %clang_cc1 -dwarf-version=5 -emit-llvm -triple x86_64-linux-gnu %s -o - \
|
|
// RUN: -O0 -disable-llvm-passes \
|
|
// RUN: -debug-info-kind=standalone \
|
|
// RUN: | FileCheck %s
|
|
|
|
// CHECK: DIDerivedType(tag: DW_TAG_typedef, {{.*}}, align: 512
|
|
|
|
typedef char __attribute__((__aligned__(64))) alchar;
|
|
|
|
int main() {
|
|
alchar newChar;
|
|
}
|