mirror of
				https://github.com/eledio-devices/thirdparty-ArduinoJson.git
				synced 2025-10-31 16:14:11 +01:00 
			
		
		
		
	Fix cannot convert 'pgm_p' to 'const void*' (fixes #1707)
				
					
				
			This commit is contained in:
		| @@ -16,6 +16,7 @@ add_executable(MixedConfigurationTests | ||||
| 	enable_progmem_1.cpp | ||||
| 	enable_string_deduplication_0.cpp | ||||
| 	enable_string_deduplication_1.cpp | ||||
| 	issue1707.cpp | ||||
| 	use_double_0.cpp | ||||
| 	use_double_1.cpp | ||||
| ) | ||||
|   | ||||
							
								
								
									
										17
									
								
								extras/tests/MixedConfiguration/issue1707.cpp
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										17
									
								
								extras/tests/MixedConfiguration/issue1707.cpp
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,17 @@ | ||||
| // ArduinoJson - https://arduinojson.org | ||||
| // Copyright © 2014-2022, Benoit BLANCHON | ||||
| // MIT License | ||||
|  | ||||
| #define ARDUINO | ||||
| #define memcpy_P(dest, src, n) memcpy((dest), (src), (n)) | ||||
|  | ||||
| #include <ArduinoJson.h> | ||||
|  | ||||
| #include <catch.hpp> | ||||
|  | ||||
| TEST_CASE("Issue1707") { | ||||
|   StaticJsonDocument<128> doc; | ||||
|  | ||||
|   DeserializationError err = deserializeJson(doc, F("{\"hello\":12}")); | ||||
|   REQUIRE(err == DeserializationError::Ok); | ||||
| } | ||||
		Reference in New Issue
	
	Block a user