mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-09-25 06:30:09 +01:00
Pointers (#1060)
* 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:
@@ -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 "-";
|
||||
|
||||
Reference in New Issue
Block a user