mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-11-04 06:56:14 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			16 lines
		
	
	
		
			162 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
		
			162 B
		
	
	
	
		
			C++
		
	
	
	
	
	
#include <stdint.h>
 | 
						|
 | 
						|
struct A {
 | 
						|
    A() { v = 1234; }
 | 
						|
    ~A() { v = 1; }
 | 
						|
    uint32_t v;
 | 
						|
};
 | 
						|
 | 
						|
A a;
 | 
						|
 | 
						|
extern "C" {
 | 
						|
    uint32_t get() {
 | 
						|
        return a.v;
 | 
						|
    }
 | 
						|
}
 |