mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-29 08:46:06 +00:00

We're going to remove the support for modules-ts. But there are a lot of tests which uses -fmodules-ts. We shouldn't remove them simply. This patch refactor these tests to use standard c++ modules.
13 lines
290 B
C++
13 lines
290 B
C++
// RUN: %clang_cc1 -std=c++20 %s -triple %itanium_abi_triple -emit-llvm -o - | FileCheck %s
|
|
export module FOO;
|
|
namespace Outer {
|
|
class Y;
|
|
class Inner {
|
|
class X;
|
|
void Fn (X &, Y &); // #2
|
|
};
|
|
// CHECK-DAG: void @_ZN5OuterW3FOO5Inner2FnERNS1_1XERNS_S0_1YE(
|
|
void Inner::Fn (X &, Y &) {}
|
|
}
|
|
|