xref: /llvm-project/clang/test/CodeGenCXX/cxx20-module-impl-1a.cpp (revision ae4dce8659f313ca2034782583d31993212fa8bd)
1*ae4dce86SNathan Sidwell // RUN: %clang_cc1 -std=c++20 %S/Inputs/cxx20-module-impl-1a.cpp -triple %itanium_abi_triple -emit-module-interface -o %t
2*ae4dce86SNathan Sidwell // RUN: %clang_cc1 -std=c++20 %s -triple %itanium_abi_triple -fmodule-file=%t -emit-llvm -o - | FileCheck %s
3*ae4dce86SNathan Sidwell 
4*ae4dce86SNathan Sidwell module Foo;
5*ae4dce86SNathan Sidwell 
6*ae4dce86SNathan Sidwell // CHECK-DAG: @_ZW3Foo8Exportedv(
Exported()7*ae4dce86SNathan Sidwell void Exported() {
8*ae4dce86SNathan Sidwell }
9*ae4dce86SNathan Sidwell 
10*ae4dce86SNathan Sidwell // CHECK-DAG: @_ZW3Foo6Modulev(
Module()11*ae4dce86SNathan Sidwell void Module() {
12*ae4dce86SNathan Sidwell }
13*ae4dce86SNathan Sidwell 
14*ae4dce86SNathan Sidwell // CHECK-DAG: @_ZW3Foo7Module2v(
Module2()15*ae4dce86SNathan Sidwell void Module2() {
16*ae4dce86SNathan Sidwell }
17