gcc/testsuite/g++.old-deja/g++.brendan/cvt5.C
raw| 1 | // { dg-do assemble } |
| 2 | // GROUPS passed conversions |
| 3 | typedef unsigned long Array[3]; |
| 4 | |
| 5 | void sample(const unsigned long (&an_array)[3]); |
| 6 | |
| 7 | class Sample |
| 8 | { |
| 9 | public: |
| 10 | void simple(const Array &an_array); |
| 11 | static void sample(const Array &an_array); |
| 12 | }; |
| 13 | |
| 14 | class A |
| 15 | { |
| 16 | public: |
| 17 | Array array; |
| 18 | }; |
| 19 | |
| 20 | Sample s; |
| 21 | |
| 22 | void simple(const A &a) |
| 23 | { |
| 24 | s.simple(a.array); |
| 25 | sample(a.array); |
| 26 | Sample::sample(a.array); |
| 27 | } |