Home | History | Annotate | Download | only in dcl.init.ref
      1 // RUN: %clang_cc1 -fsyntax-only -verify -std=c++0x %s
      2 int g(int);
      3 void f() {
      4   int i;
      5   int& r = i;
      6   r = 1;
      7   int* p = &r;
      8   int &rr=r;
      9   int (&rg)(int) = g;
     10   rg(i);
     11   int a[3];
     12   int (&ra)[3] = a;
     13   ra[1] = i;
     14 }
     15