1 #if !defined(SWIGGO) 2 // Prevent Go from generating a Go module import - this test is not set up as true multiple modules 3 %module import_fragments_a 4 #endif 5 6 %fragment("ImportA1", "header") %{ 7 ImportA1_this_will_not_compile; 8 %} 9 %fragment("ImportA2", "header") %{ 10 ImportA2_this_will_not_compile; 11 %} 12 %fragment("ImportA3", "header") %{ 13 ImportA3_this_will_not_compile; 14 %} 15 %fragment("ImportA4", "header") %{ 16 static int ImportA4 = 99; 17 %} 18 %fragment("ImportA5", "header") %{ 19 ImportA5_this_will_not_compile; 20 %} 21 22 %fragment("ImportA1"); 23 24 %{ 25 Import_will_not_compile; 26 %} 27 28 struct StructA { 29 %fragment("ImportA2"); 30 }; 31 32 template<typename T> 33 struct TemplateA3 { 34 %fragment("ImportA3"); 35 }; 36 37 template<typename T> 38 struct TemplateA4 { 39 %fragment("ImportA4"); 40 }; 41 42 template<typename T> 43 struct TemplateA5 { 44 %fragment("ImportA5"); 45 }; 46 %template(TemplateA5Double) TemplateA5<double>; 47 48 %include "import_fragments_b.i" 49