Further work pending GCC bug #105467 and/or Ninja bug #1962.pull/10358/head
parent
7183d9d71e
commit
eef51fa3d6
14 changed files with 98 additions and 0 deletions
@ -0,0 +1,7 @@ |
||||
import M0; |
||||
#include<cstdio> |
||||
|
||||
int main() { |
||||
printf("The value is %d", func0()); |
||||
return 0; |
||||
} |
@ -0,0 +1,19 @@ |
||||
# GCC does not recognize .ixx as a C++ source extension so |
||||
# we have to do this instead. |
||||
|
||||
e = executable('modtest', |
||||
'main.cpp', |
||||
'src0.cxx', |
||||
'src1.cxx', |
||||
'src2.cxx', |
||||
'src3.cxx', |
||||
'src4.cxx', |
||||
'src5.cxx', |
||||
'src6.cxx', |
||||
'src7.cxx', |
||||
'src8.cxx', |
||||
'src9.cxx', |
||||
cpp_args: ['-fmodules-ts'], |
||||
) |
||||
|
||||
test('modtest', e) |
@ -0,0 +1,7 @@ |
||||
export module M0; |
||||
|
||||
import M1; |
||||
|
||||
export int func0() { |
||||
return func1(); |
||||
} |
@ -0,0 +1,7 @@ |
||||
export module M1; |
||||
|
||||
import M2; |
||||
|
||||
export int func1() { |
||||
return func2(); |
||||
} |
@ -0,0 +1,7 @@ |
||||
export module M2; |
||||
|
||||
import M3; |
||||
|
||||
export int func2() { |
||||
return func3(); |
||||
} |
@ -0,0 +1,7 @@ |
||||
export module M3; |
||||
|
||||
import M4; |
||||
|
||||
export int func3() { |
||||
return func4(); |
||||
} |
@ -0,0 +1,7 @@ |
||||
export module M4; |
||||
|
||||
import M5; |
||||
|
||||
export int func4() { |
||||
return func5(); |
||||
} |
@ -0,0 +1,7 @@ |
||||
export module M5; |
||||
|
||||
import M6; |
||||
|
||||
export int func5() { |
||||
return func6(); |
||||
} |
@ -0,0 +1,7 @@ |
||||
export module M6; |
||||
|
||||
import M7; |
||||
|
||||
export int func6() { |
||||
return func7(); |
||||
} |
@ -0,0 +1,7 @@ |
||||
export module M7; |
||||
|
||||
import M8; |
||||
|
||||
export int func7() { |
||||
return func8(); |
||||
} |
@ -0,0 +1,7 @@ |
||||
export module M8; |
||||
|
||||
import M9; |
||||
|
||||
export int func8() { |
||||
return func9(); |
||||
} |
@ -0,0 +1,5 @@ |
||||
export module M9; |
||||
|
||||
export int func9() { |
||||
return 42; |
||||
} |
Loading…
Reference in new issue