mirror of https://github.com/google/pebble
				
				
				
			
		
			
				
	
	
		
			15 lines
		
	
	
		
			352 B
		
	
	
	
		
			Python
		
	
	
	
			
		
		
	
	
			15 lines
		
	
	
		
			352 B
		
	
	
	
		
			Python
		
	
	
	
| # Regression test for #363:
 | |
| # Incorrect PB_STATIC_ASSERT for bytes inside oneof
 | |
| 
 | |
| Import("env")
 | |
| 
 | |
| env.NanopbProto("oneofmsg.proto")
 | |
| testprog = env.Program(["test_oneofmsg.c",
 | |
|                  "oneofmsg.pb.c",
 | |
|                  "$COMMON/pb_encode.o",
 | |
|                  "$COMMON/pb_decode.o",
 | |
|                  "$COMMON/pb_common.o"])
 | |
| 
 | |
| env.RunTest(testprog)
 | |
| 
 |