[docs] Add LICENSE.txt to the root of the mono-repo
[llvm-project.git] / clang / test / Layout / dump-canonical.cpp
blob7acf4925f9425722c8107d9f6ff0a0ee7f869bb3
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
4 typedef long foo_t;
7 struct a {
8 foo_t x;
9 } b;
11 struct c {
12 typedef foo_t bar_t;
13 bar_t x;
14 } d;
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