llvm-project
20 строк · 430.0 Байт
1// RUN: %clang_cc1 -emit-llvm-only -fdump-record-layouts %s | FileCheck %s
2// RUN: %clang_cc1 -emit-llvm-only -fdump-record-layouts-canonical %s | FileCheck %s -check-prefix CANONICAL
3
4typedef long foo_t;5
6
7struct a {8foo_t x;9} b;10
11struct c {12typedef foo_t bar_t;13bar_t x;14} d;15
16// CHECK: 0 | foo_t
17// CHECK: 0 | bar_t
18// CANONICAL-NOT: 0 | foo_t
19// CANONICAL-NOT: 0 | bar_t
20// CANONICAL: 0 | long
21