Skip to content

[NFC] [C++20] [Modules] Add a test#195989

Closed
ChuanqiXu9 wants to merge 1 commit into
llvm:mainfrom
ChuanqiXu9:PR195905Test
Closed

[NFC] [C++20] [Modules] Add a test#195989
ChuanqiXu9 wants to merge 1 commit into
llvm:mainfrom
ChuanqiXu9:PR195905Test

Conversation

@ChuanqiXu9
Copy link
Copy Markdown
Member

From #195905

@ChuanqiXu9 ChuanqiXu9 self-assigned this May 6, 2026
@ChuanqiXu9 ChuanqiXu9 added the skip-precommit-approval PR for CI feedback, not intended for review label May 6, 2026
@llvmorg-github-actions llvmorg-github-actions Bot added clang Clang issues not falling into any other category clang:modules C++20 modules and Clang Header Modules labels May 6, 2026
@ChuanqiXu9 ChuanqiXu9 enabled auto-merge (squash) May 6, 2026 03:17
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 6, 2026

🪟 Windows x64 Test Results

  • 53844 tests passed
  • 1182 tests skipped
  • 1 test failed

Failed Tests

(click on a test name to see its output)

Clang

Clang.Modules/pr195905.cppm
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 1
rm -rf C:\_work\llvm-project\llvm-project\build\tools\clang\test\Modules\Output\pr195905.cppm.tmp
# executed command: rm -rf 'C:\_work\llvm-project\llvm-project\build\tools\clang\test\Modules\Output\pr195905.cppm.tmp'
# note: command had no output on stdout or stderr
# RUN: at line 2
mkdir -p C:\_work\llvm-project\llvm-project\build\tools\clang\test\Modules\Output\pr195905.cppm.tmp
# executed command: mkdir -p 'C:\_work\llvm-project\llvm-project\build\tools\clang\test\Modules\Output\pr195905.cppm.tmp'
# note: command had no output on stdout or stderr
# RUN: at line 3
split-file C:\_work\llvm-project\llvm-project\clang\test\Modules\pr195905.cppm C:\_work\llvm-project\llvm-project\build\tools\clang\test\Modules\Output\pr195905.cppm.tmp
# executed command: split-file 'C:\_work\llvm-project\llvm-project\clang\test\Modules\pr195905.cppm' 'C:\_work\llvm-project\llvm-project\build\tools\clang\test\Modules\Output\pr195905.cppm.tmp'
# note: command had no output on stdout or stderr
# RUN: at line 5
c:\_work\llvm-project\llvm-project\build\bin\clang.exe -cc1 -internal-isystem C:\_work\llvm-project\llvm-project\build\lib\clang\23\include -nostdsysteminc -std=c++26 C:\_work\llvm-project\llvm-project\build\tools\clang\test\Modules\Output\pr195905.cppm.tmp/a.cppm -emit-reduced-module-interface -o C:\_work\llvm-project\llvm-project\build\tools\clang\test\Modules\Output\pr195905.cppm.tmp/a.pcm
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\clang.exe' -cc1 -internal-isystem 'C:\_work\llvm-project\llvm-project\build\lib\clang\23\include' -nostdsysteminc -std=c++26 'C:\_work\llvm-project\llvm-project\build\tools\clang\test\Modules\Output\pr195905.cppm.tmp/a.cppm' -emit-reduced-module-interface -o 'C:\_work\llvm-project\llvm-project\build\tools\clang\test\Modules\Output\pr195905.cppm.tmp/a.pcm'
# .---command stderr------------
# | In file included from C:\_work\llvm-project\llvm-project\build\tools\clang\test\Modules\Output\pr195905.cppm.tmp/a.cppm:3:
# | C:\_work\llvm-project\llvm-project\build\tools\clang\test\Modules\Output\pr195905.cppm.tmp\base.hpp:2:4: warning: 'gnu_inline' attribute without 'extern' in C++ treated as externally available, this changed in Clang 10 [-Wgnu-inline-cpp-without-extern]
# |     2 |         [[__gnu__::__gnu_inline__]] inline ~base() {}
# |       |           ^
# | 1 warning generated.
# `-----------------------------
# RUN: at line 6
c:\_work\llvm-project\llvm-project\build\bin\clang.exe -cc1 -internal-isystem C:\_work\llvm-project\llvm-project\build\lib\clang\23\include -nostdsysteminc -std=c++26 C:\_work\llvm-project\llvm-project\build\tools\clang\test\Modules\Output\pr195905.cppm.tmp/b.cppm -fmodule-file=a=C:\_work\llvm-project\llvm-project\build\tools\clang\test\Modules\Output\pr195905.cppm.tmp/a.pcm -emit-llvm -o - | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe C:\_work\llvm-project\llvm-project\build\tools\clang\test\Modules\Output\pr195905.cppm.tmp/b.cppm
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\clang.exe' -cc1 -internal-isystem 'C:\_work\llvm-project\llvm-project\build\lib\clang\23\include' -nostdsysteminc -std=c++26 'C:\_work\llvm-project\llvm-project\build\tools\clang\test\Modules\Output\pr195905.cppm.tmp/b.cppm' '-fmodule-file=a=C:\_work\llvm-project\llvm-project\build\tools\clang\test\Modules\Output\pr195905.cppm.tmp/a.pcm' -emit-llvm -o -
# .---command stderr------------
# | In file included from C:\_work\llvm-project\llvm-project\build\tools\clang\test\Modules\Output\pr195905.cppm.tmp/b.cppm:2:
# | C:\_work\llvm-project\llvm-project\build\tools\clang\test\Modules\Output\pr195905.cppm.tmp\base.hpp:2:4: warning: 'gnu_inline' attribute without 'extern' in C++ treated as externally available, this changed in Clang 10 [-Wgnu-inline-cpp-without-extern]
# |     2 |         [[__gnu__::__gnu_inline__]] inline ~base() {}
# |       |           ^
# | 1 warning generated.
# `-----------------------------
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' 'C:\_work\llvm-project\llvm-project\build\tools\clang\test\Modules\Output\pr195905.cppm.tmp/b.cppm'
# .---command stderr------------
# | C:\_work\llvm-project\llvm-project\build\tools\clang\test\Modules\Output\pr195905.cppm.tmp/b.cppm:14:11: error: CHECK: expected string not found in input
# | // CHECK: define void
# |           ^
# | <stdin>:1:1: note: scanning from here
# | ; ModuleID = 'C:\_work\llvm-project\llvm-project\build\tools\clang\test\Modules\Output\pr195905.cppm.tmp/b.cppm'
# | ^
# | <stdin>:11:1: note: possible intended match here
# | define dso_local void @"?f@@YAXXZ"() #0 {
# | ^
# | 
# | Input file: <stdin>
# | Check file: C:\_work\llvm-project\llvm-project\build\tools\clang\test\Modules\Output\pr195905.cppm.tmp/b.cppm
# | 
# | -dump-input=help explains the following input dump.
# | 
# | Input was:
# | <<<<<<
# |             1: ; ModuleID = 'C:\_work\llvm-project\llvm-project\build\tools\clang\test\Modules\Output\pr195905.cppm.tmp/b.cppm' 
# | check:14'0     X~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ error: no match found
# |             2: source_filename = "C:\\_work\\llvm-project\\llvm-project\\build\\tools\\clang\\test\\Modules\\Output\\pr195905.cppm.tmp/b.cppm" 
# | check:14'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |             3: target datalayout = "e-m:w-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128" 
# | check:14'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |             4: target triple = "x86_64-pc-windows-msvc" 
# | check:14'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |             5:  
# | check:14'0     ~
# |             6: %struct.derived = type { i8 } 
# | check:14'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |             7:  
# | check:14'0     ~
# |             8: $"??1derived@@QEAA@XZ" = comdat any 
# | check:14'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |             9:  
# | check:14'0     ~
# |            10: ; Function Attrs: mustprogress noinline nounwind optnone 
# | check:14'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            11: define dso_local void @"?f@@YAXXZ"() #0 { 
# | check:14'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | check:14'1     ?                                          possible intended match
# |            12: entry: 
# | check:14'0     ~~~~~~~
# |            13:  %x = alloca %struct.derived, align 1 
# | check:14'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            14:  call void @"??1derived@@QEAA@XZ"(ptr noundef nonnull align 1 dereferenceable(1) %x) #2 
# | check:14'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            15:  ret void 
# | check:14'0     ~~~~~~~~~~
# |            16: } 
# | check:14'0     ~~
# |             .
# |             .
# |             .
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1

--

If these failures are unrelated to your changes (for example tests are broken or flaky at HEAD), please open an issue at https://github.com/llvm/llvm-project/issues and add the infrastructure label.

@ChuanqiXu9 ChuanqiXu9 closed this May 6, 2026
auto-merge was automatically disabled May 6, 2026 05:26

Pull request was closed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

clang:modules C++20 modules and Clang Header Modules clang Clang issues not falling into any other category skip-precommit-approval PR for CI feedback, not intended for review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant