clang/test/Layout/dump-canonical.cpp
raw| 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 | |
| 4 | typedef long foo_t; |
| 5 | |
| 6 | |
| 7 | struct a { |
| 8 | foo_t x; |
| 9 | } b; |
| 10 | |
| 11 | struct c { |
| 12 | typedef foo_t bar_t; |
| 13 | bar_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 |