aboutsummaryrefslogtreecommitdiff
path: root/clang/test/Modules/language-linkage.cppm
blob: 7933ed8bdd0e8c19ccc4308162f13ef7d62ff0a9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Make sure that the declarations inside the language linkage can
// be generated correctly.
//
// RUN: rm -fr %t
// RUN: mkdir %t
//
// RUN: %clang_cc1 -std=c++20 -triple %itanium_abi_triple %s -emit-module-interface -o %t/M.pcm
// RUN: %clang_cc1 -std=c++20 -triple %itanium_abi_triple %t/M.pcm -emit-llvm -disable-llvm-passes -o - | FileCheck %s
export module M;

extern "C++" {
void foo() {} 
}

extern "C" void bar() {}

// CHECK: define {{.*}}@_Z3foov(
// CHECK: define {{.*}}@bar(