[clang] Handle __declspec() attributes in using
[llvm-project.git] / clang / test / CodeGenCXX / module-extern-C.cpp
blobd8012ada591bbd7b3e293abacbd8523c16ed7bc6
1 // RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -std=c++20 -emit-llvm -triple %itanium_abi_triple -o - %s | FileCheck %s
3 module;
5 #include "Inputs/module-extern-C.h"
7 export module x;
9 // CHECK: void @foo()
10 extern "C" void foo() {
11 return;
14 extern "C" {
15 // CHECK: void @bar()
16 void bar() {
17 return;
19 // CHECK: i32 @baz()
20 int baz() {
21 return 3;
23 // CHECK: double @double_func()
24 double double_func() {
25 return 5.0;