mirror of
				https://gitlab.freedesktop.org/wayland/wayland.git
				synced 2025-11-03 09:01:42 -05:00 
			
		
		
		
	
		
			
	
	
		
			15 lines
		
	
	
	
		
			276 B
		
	
	
	
		
			C
		
	
	
	
	
	
		
		
			
		
	
	
			15 lines
		
	
	
	
		
			276 B
		
	
	
	
		
			C
		
	
	
	
	
	
| 
								 | 
							
								struct test {
							 | 
						||
| 
								 | 
							
									const char *name;
							 | 
						||
| 
								 | 
							
									void (*run)(void);
							 | 
						||
| 
								 | 
							
								};
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								#define TEST(name)						\
							 | 
						||
| 
								 | 
							
									static void name(void);					\
							 | 
						||
| 
								 | 
							
																\
							 | 
						||
| 
								 | 
							
									const struct test test##name			\
							 | 
						||
| 
								 | 
							
										 __attribute__ ((section ("test_section"))) = {	\
							 | 
						||
| 
								 | 
							
										#name, name					\
							 | 
						||
| 
								 | 
							
									};							\
							 | 
						||
| 
								 | 
							
																\
							 | 
						||
| 
								 | 
							
									static void name(void)
							 |