llvm-project/clang/test/Layout/dump-canonical.cpp
Jonas Devlieghere 888673b6e3
Revert "[clang] Implement ElaboratedType sugaring for types written bare"
This reverts commit 7c51f02effdbd0d5e12bfd26f9c3b2ab5687c93f because it
stills breaks the LLDB tests. This was  re-landed without addressing the
issue or even agreement on how to address the issue. More details and
discussion in https://reviews.llvm.org/D112374.
2022-07-14 21:17:48 -07:00

21 lines
436 B
C++

// RUN: %clang_cc1 -emit-llvm-only -fdump-record-layouts %s | FileCheck %s
// RUN: %clang_cc1 -emit-llvm-only -fdump-record-layouts-canonical %s | FileCheck %s -check-prefix CANONICAL
typedef long foo_t;
struct a {
foo_t x;
} b;
struct c {
typedef foo_t bar_t;
bar_t x;
} d;
// CHECK: 0 | foo_t
// CHECK: 0 | c::bar_t
// CANONICAL-NOT: 0 | foo_t
// CANONICAL-NOT: 0 | c::bar_t
// CANONICAL: 0 | long