brintos

brintos / llvm-project-archived public Read only

0
0
Text · 429 B · d8012ad Raw
28 lines · cpp
1// RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -std=c++20 -emit-llvm -triple %itanium_abi_triple -o - %s | FileCheck %s2 3module;4 5#include "Inputs/module-extern-C.h"6 7export module x;8 9// CHECK: void @foo()10extern "C" void foo() {11  return;12}13 14extern "C" {15// CHECK: void @bar()16void bar() {17  return;18}19// CHECK: i32 @baz()20int baz() {21  return 3;22}23// CHECK: double @double_func()24double double_func() {25  return 5.0;26}27}28