aboutsummaryrefslogtreecommitdiff
path: root/clang/test/Layout/dump-canonical.cpp
blob: 7acf4925f9425722c8107d9f6ff0a0ee7f869bb3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// 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 | bar_t
// CANONICAL-NOT:  0 | foo_t
// CANONICAL-NOT:  0 | bar_t
// CANONICAL:      0 | long