brintos

brintos / llvm-project-archived public Read only

0
0
Text · 847 B · a5129d4 Raw
27 lines · plain
1// RUN: rm -rf %t2// RUN: mkdir %t3//4// RUN: %clang_cc1 -std=c++20 %s -emit-module-interface -o %t/a.pcm5// RUN: llvm-bcanalyzer --dump --disable-histogram --show-binary-blobs %t/a.pcm > %t/a.dump6// RUN: cat %t/a.dump | FileCheck %s7//8// RUN: %clang_cc1 -std=c++20 %s -emit-reduced-module-interface -o %t/a.pcm9// RUN: llvm-bcanalyzer --dump --disable-histogram --show-binary-blobs %t/a.pcm > %t/a.dump10// RUN: cat %t/a.dump | FileCheck %s11 12export module a;13// Contain something at least to make sure the compiler won't14// optimize this out.15export int a = 43;16 17// CHECK:  <DECLTYPES_BLOCK18// CHECK-NOT: <DECL_TYPEDEF19// CHECK:    <TYPE_TYPEDEF20// CHECK:    <DECL_CONTEXT_LEXICAL21// CHECK:    <DECL_EXPORT22// CHECK:    <TYPE_RECORD23// CHECK:    <DECL_VAR24// CHECK:    <EXPR_INTEGER_LITERAL25// CHECK:    <STMT_STOP26// CHECK:  </DECLTYPES_BLOCK>27