brintos

brintos / llvm-project-archived public Read only

0
0
Text · 489 B · 7933ed8 Raw
19 lines · plain
1// Make sure that the declarations inside the language linkage can2// be generated correctly.3//4// RUN: rm -fr %t5// RUN: mkdir %t6//7// RUN: %clang_cc1 -std=c++20 -triple %itanium_abi_triple %s -emit-module-interface -o %t/M.pcm8// RUN: %clang_cc1 -std=c++20 -triple %itanium_abi_triple %t/M.pcm -emit-llvm -disable-llvm-passes -o - | FileCheck %s9export module M;10 11extern "C++" {12void foo() {} 13}14 15extern "C" void bar() {}16 17// CHECK: define {{.*}}@_Z3foov(18// CHECK: define {{.*}}@bar(19