21 lines · cpp
1// RUN: %clang_cc1 -emit-llvm-only -fdump-record-layouts %s | FileCheck %s2// RUN: %clang_cc1 -emit-llvm-only -fdump-record-layouts-canonical %s | FileCheck %s -check-prefix CANONICAL3 4typedef long foo_t;5 6 7struct a {8 foo_t x;9} b;10 11struct c {12 typedef foo_t bar_t;13 bar_t x;14} d;15 16// CHECK: 0 | foo_t17// CHECK: 0 | bar_t18// CANONICAL-NOT: 0 | foo_t19// CANONICAL-NOT: 0 | bar_t20// CANONICAL: 0 | long21