repo.or.cz
/
llvm-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[Flang] remove whole-archive option for AIX linker (#76039)
[llvm-project.git]
/
clang
/
test
/
CXX
/
module
/
module.unit
/
p7
/
t1.cpp
blob
dcafb3b60c380273c819928d371d640ed44fb79d
1
// RUN: %clang_cc1 -std=c++20 %s -verify
2
// expected-no-diagnostics
3
module
;
4
5
#include
"Inputs/h1.h"
6
7
export module x
;
8
9
extern
"C"
void
foo
() {
10
return
;
11
}
12
13
extern
"C"
{
14
void
bar
() {
15
return
;
16
}
17
int
baz
() {
18
return
3
;
19
}
20
double
double_func
() {
21
return
5.0
;
22
}
23
}
24
25
extern
"C++"
{
26
void
bar_cpp
() {
27
return
;
28
}
29
int
baz_cpp
() {
30
return
3
;
31
}
32
double
double_func_cpp
() {
33
return
5.0
;
34
}
35
}