summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.brendan/cvt5.C
blob: a5f8d84b4f2a760d6950f65da396932057b01232 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// { dg-do assemble  }
// GROUPS passed conversions
typedef unsigned long Array[3];

void sample(const unsigned long (&an_array)[3]);

class Sample
  {
 public:
  void simple(const Array &an_array);
  static void sample(const Array &an_array);
  };

class A
  {
 public:
  Array array;
  };

  Sample s;

  void simple(const A &a)
    {
    s.simple(a.array);
    sample(a.array);
    Sample::sample(a.array);
    }