clang/test/DebugInfo/CXX/template-align.cpp
raw| 1 | // Test for debug info related to DW_AT_alignment attribute in the typedef operator |
| 2 | // Supported: -O0, standalone DI |
| 3 | // RUN: %clang_cc1 -dwarf-version=5 -emit-llvm -triple x86_64-linux-gnu %s -o - \ |
| 4 | // RUN: -O0 -disable-llvm-passes \ |
| 5 | // RUN: -debug-info-kind=standalone \ |
| 6 | // RUN: | FileCheck %s |
| 7 | |
| 8 | // CHECK: DIDerivedType(tag: DW_TAG_typedef, {{.*}}, align: 512 |
| 9 | |
| 10 | typedef char __attribute__((__aligned__(64))) alchar; |
| 11 | |
| 12 | int main() { |
| 13 | alchar newChar; |
| 14 | } |