31 lines
		
	
	
		
			344 B
		
	
	
	
		
			C++
		
	
	
	
			
		
		
	
	
			31 lines
		
	
	
		
			344 B
		
	
	
	
		
			C++
		
	
	
	
| // Compile this with:
 | |
| // g++ -g -shared -o libtest36-leaf-v0.so test36-leaf-v0.cc
 | |
| 
 | |
| struct leaf1
 | |
| {
 | |
|   int m0;
 | |
| }; // end struct leaf1
 | |
| 
 | |
| struct leaf2
 | |
| {
 | |
|   leaf1 member0;
 | |
|   char member1;
 | |
| }; // end struct leaf2
 | |
| 
 | |
| struct struct_type
 | |
| {
 | |
|   leaf2* m0;
 | |
| };
 | |
| 
 | |
| void
 | |
| interface1(struct_type*)
 | |
| {}
 | |
| 
 | |
| void
 | |
| interface2(struct_type&)
 | |
| {}
 | |
| 
 | |
| void
 | |
| interface3(struct_type**)
 | |
| {}
 |