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