
According to [module.unit]p7.2.3, a declaration within a linkage-specification should be attached to the global module. This let user to forward declare types across modules. Reviewed by: rsmith, aaron.ballman Differential Revision: https://reviews.llvm.org/D110215
8 lines
107 B
C
8 lines
107 B
C
extern "C" void foo();
|
|
extern "C" {
|
|
void bar();
|
|
int baz();
|
|
double double_func();
|
|
}
|
|
extern "C++" class CPP;
|