llvm-project/clang/test/CodeGenCXX/debug-info-template-align.cpp

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

15 lines
455 B
C++
Raw Normal View History

// 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;
}