modula2 testsuite: new libc unit test
[official-gcc.git] / gcc / testsuite / g++.dg / torture / pr78684.C
blob5d71be5fce4f1188e66ed6c3b9caa0e7661e37fd
1 // PR middle-end/78684
2 // { dg-do compile }
4 class a {
5 public:
6   a(long);
7   void operator<<=(long) {
8     long b;
9     for (unsigned long c; c; c--)
10       d[c + b] = d[c];
11   }
12   a &g();
13   long d[28];
15 long e;
16 int f;
17 void j() {
18   a h(e), i = h;
19   i.g() <<= f;