Merge branch 'constexpr-progmem' into integration

This commit is contained in:
J. Nick Koston
2026-02-19 16:40:31 -06:00
2 changed files with 2 additions and 2 deletions

View File

@@ -441,7 +441,7 @@ class ProgmemAssignmentExpression(AssignmentExpression):
super().__init__(type_, "", name, rhs)
def __str__(self):
return f"static const {self.type} {self.name}[] PROGMEM = {self.rhs}"
return f"static constexpr {self.type} {self.name}[] PROGMEM = {self.rhs}"
class StaticConstAssignmentExpression(AssignmentExpression):

View File

@@ -331,7 +331,7 @@ class TestStatements:
),
(
cg.ProgmemAssignmentExpression(ct.uint16, "foo", "bar"),
'static const uint16_t foo[] PROGMEM = "bar"',
'static constexpr uint16_t foo[] PROGMEM = "bar"',
),
),
)