Functionally equivalent and works correctly...
void setup() {
Serial.begin(115200);
Serial.write("Here we go...\n");
const uint32_t TESTCONSTANT = 4000000;
Serial.write("TESTCONSTANT=");
Serial.println( TESTCONSTANT );
}
void loop() {
}