mirror of
				https://gitlab.freedesktop.org/wayland/wayland.git
				synced 2025-11-03 09:01:42 -05:00 
			
		
		
		
	
		
			
	
	
		
			14 lines
		
	
	
	
		
			355 B
		
	
	
	
		
			C
		
	
	
	
	
	
		
		
			
		
	
	
			14 lines
		
	
	
	
		
			355 B
		
	
	
	
		
			C
		
	
	
	
	
	
| 
								 | 
							
								#include <assert.h>
							 | 
						||
| 
								 | 
							
								#include "data/small-server-core.h"
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								int
							 | 
						||
| 
								 | 
							
								main(int argc, char *argv[]) {
							 | 
						||
| 
								 | 
							
									assert(intf_A_foo_is_valid(INTF_A_FOO_FIRST, 1));
							 | 
						||
| 
								 | 
							
									assert(intf_A_foo_is_valid(INTF_A_FOO_FIRST, 2));
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
									assert(!intf_A_foo_is_valid(INTF_A_FOO_THIRD, 1));
							 | 
						||
| 
								 | 
							
									assert(intf_A_foo_is_valid(INTF_A_FOO_THIRD, 2));
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
									assert(intf_A_foo_is_valid(INTF_A_FOO_NEGATIVE, 2));
							 | 
						||
| 
								 | 
							
								}
							 |