mirror of
				https://sourceware.org/git/glibc.git
				synced 2025-10-30 10:45:40 +03:00 
			
		
		
		
	
		
			
				
	
	
		
			12 lines
		
	
	
		
			150 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
		
			150 B
		
	
	
	
		
			C
		
	
	
	
	
	
| #include <tls.h>
 | |
| 
 | |
| __thread int b[2] __attribute__ ((tls_model ("initial-exec")));
 | |
| 
 | |
| extern int foo (void);
 | |
| 
 | |
| int
 | |
| bar (void)
 | |
| {
 | |
|   return foo () + b[0];
 | |
| }
 |