mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-10-30 03:02:30 +00:00 
			
		
		
		
	Update tests to avoid bits()
This commit is contained in:
		
							parent
							
								
									975bbf2d6d
								
							
						
					
					
						commit
						f9ee5e4c31
					
				
					 1 changed files with 4 additions and 4 deletions
				
			
		|  | @ -80,10 +80,10 @@ namespace RTLIL { | |||
| 			EXPECT_EQ(i, 16); | ||||
| 			EXPECT_TRUE(cs1.is_str()); | ||||
| 
 | ||||
| 			// It can be mutated with the bits() view
 | ||||
| 			// and decays into unpacked
 | ||||
| 			for (auto& bit : cs1.bits()) { | ||||
| 				bit = State::Sx; | ||||
| 			// It can be mutated via bit iteration and decays into unpacked
 | ||||
| 			// when an non-defined bit is set.
 | ||||
| 			for (auto b : cs1) { | ||||
| 				b = State::Sx; | ||||
| 			} | ||||
| 			EXPECT_TRUE(cs1.is_bits()); | ||||
| 		} | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue