Skip to content

Commit 59dcf4d

Browse files
committed
Add a test for the -fmodule-output BMI output file
1 parent d6c2b9b commit 59dcf4d

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

clang/test/Driver/cl-cxx20-modules.cppm

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,11 @@
1414

1515
//--- test.pcm
1616
// CPP20WARNING-NOT: clang-cl: warning: argument unused during compilation: '/std:c++20' [-Wunused-command-line-argument]
17+
18+
// test whether the following outputs %Hello.bmi
19+
// RUN: %clang_cl /std:c++20 --precompile -x c++-module -fmodule-output=%t/Hello.bmi -Fo"%t/Hello.bmi" -c %t/Hello.cppm -### 2>&1 | FileCheck %s
20+
// CHECK: "-emit-module-interface"
21+
// CHECK: "-o" "{{.*}}Hello.bmi"
22+
23+
//--- Hello.cppm
24+
export module Hello;

0 commit comments

Comments
 (0)