llvm-project/clang/test/CodeGenCXX/cxx20-module-nested-2.cppm
Chuanqi Xu d54888a3eb [Modules] Refactor modules-ts tests to use standard c++ modules
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.
2023-02-16 14:05:16 +08:00

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 &) {}
}