Skip to content
Commit 1e7c50c4 authored by Rui Ueyama's avatar Rui Ueyama
Browse files

Allow global variable initializer to have an addend

A global variable can be initialized with an address of other global
variable, so the following code is legal.

  int x[3];
  int &y = x;

In addition to that, an address can have an addend, so the following
code is also legal

  int x[3];
  int &y = x+2;
parent 0b4dcf1f
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment