llvm-project/clang/test/Modules/diff-retain-comments-from-system-headers-flag.cppm
Chuanqi Xu d5cdc26f55 [Clang] Mark RetainCommentsFromSystemHeaders as compatible language options
Motivated by comments in https://github.com/clangd/clangd/issues/1293

And RetainCommentsFromSystemHeaders shouldn't affect the compatibleness
anyway.
2024-10-31 15:52:18 +08:00

14 lines
343 B
C++

// RUN: rm -rf %t
// RUN: mkdir %t
// RUN: split-file %s %t
//
// RUN: %clang_cc1 -std=c++20 %t/a.cppm -emit-module-interface -o %t/a.pcm -fretain-comments-from-system-headers
// RUN: %clang_cc1 -std=c++20 %t/b.cpp -fmodule-file=a=%t/a.pcm -verify -fsyntax-only
//--- a.cppm
export module a;
//--- b.cpp
// expected-no-diagnostics
import a;