Skip to content

Commit ad840c4

Browse files
committed
Add a test to check that warning is gone
1 parent 3b9c3d2 commit ad840c4

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
@@ -1,3 +1,6 @@
1+
// RUN: rm -rf %t
2+
// RUN: split-file %s %t
3+
14
// RUN: %clang_cl /std:c++20 --precompile -### -- %s 2>&1 | FileCheck --check-prefix=PRECOMPILE %s
25
// PRECOMPILE: -emit-module-interface
36

@@ -6,3 +9,8 @@
69

710
// RUN: %clang_cl /std:c++20 --fprebuilt-module-path=. -### -- %s 2>&1 | FileCheck --check-prefix=FPREBUILT %s
811
// FPREBUILT: -fprebuilt-module-path=.
12+
13+
// RUN: %clang_cl %t/test.pcm /std:c++20 -### 2>&1 | FileCheck --check-prefix=CPP20WARNING %t/test.pcm
14+
15+
//--- test.pcm
16+
// CPP20WARNING-NOT: clang-cl: warning: argument unused during compilation: '/std:c++20' [-Wunused-command-line-argument]

0 commit comments

Comments
 (0)