* Naive pointer implementation

* Bug fixes and better pointer tests

* Remove debug print statement

* Implement changes suggested by @geoffromer

Also add a failing test case that tests applying the address-of operator
to an rvalue.
This commit is contained in:
Darshal Shetty
2022-02-05 10:27:54 -05:00
committed by GitHub
parent f6cbd2231e
commit 4479c55305
11 changed files with 131 additions and 5 deletions
+2
View File
@@ -54,6 +54,8 @@ auto ToString(Operator op) -> std::string_view {
switch (op) {
case Operator::Add:
return "+";
case Operator::AddressOf:
return "&";
case Operator::Neg:
case Operator::Sub:
return "-";