
Motivated by comments in https://github.com/clangd/clangd/issues/1293 And RetainCommentsFromSystemHeaders shouldn't affect the compatibleness anyway.
14 lines
343 B
C++
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;
|