brintos

brintos / llvm-project-archived public Read only

0
0
Text · 671 B · 8882e85 Raw
23 lines · plain
1// Tests that we can use modules and ftime-trace together.2// Address https://github.com/llvm/llvm-project/issues/605443//4// RUN: rm -rf %t5// RUN: mkdir -p %t6// RUN: split-file %s %t7//8// RUN: %clang_cc1 -std=c++20 %t/a.cppm -emit-module-interface -o %t/a.pcm9// RUN: %clang_cc1 -std=c++20 %t/a.pcm -ftime-trace=%t/a.json -o -10// RUN: ls %t | grep "a.json"11 12// Test again with reduced BMI.13// RUN: rm -rf %t14// RUN: mkdir -p %t15// RUN: split-file %s %t16//17// RUN: %clang_cc1 -std=c++20 %t/a.cppm -emit-reduced-module-interface -o %t/a.pcm18// RUN: %clang_cc1 -std=c++20 %t/a.pcm -ftime-trace=%t/a.json -o -19// RUN: ls %t | grep "a.json"20 21//--- a.cppm22export module a;23