3
%warnfilter(801) hi; /* Ruby, wrong constant name */
4
%warnfilter(801) hello; /* Ruby, wrong constant name */
8
const void* ref_pointer(const void*& a) {
16
const A* ref_pointer(A* const& a) {
20
const A** ref_pointer_1(const A**& a) {
28
const A& ref_const(const A& a) {
32
enum Hello { hi,hello };
38
const int& ref_int(const int& a) {
42
Hello senum(Hello a) {
46
const Hello& ref_enum(const Hello& a) {
51
const Aptr& rptr_const(const Aptr& a) {
55
const Aptr& rptr_const2(const Aptr& a) {
59
const void*& rptr_void(const void*& a) {
63
const A& cref_a(const A& a) {
72
template <class T> struct NameT {
79
typedef NameT<char> name_t[8];
81
char* test_a(char hello[8],
92
/* gcc doesn't like this one. Removing until reason resolved.*/
93
int test_c(const name& n1) {
97
int test_d(name* n1) {
101
int test_e(const name_t& n1) {
105
int test_f(name_t n1) {
109
int test_g(name_t* n1) {
115
int foo(const Aptr&a);
116
int foon(const char (&a)[8]);
119
inline int Foo::foo(A* const& a) { return 1; }
124
inline int Foo::foon(const name& a) { return a[0]; }
130
#define ARRAY_LEN_X 2
131
#define ARRAY_LEN_Y 4
133
typedef enum {One, Two, Three, Four, Five} finger;
139
char array_c [ARRAY_LEN_X][ARRAY_LEN_Y];
140
signed char array_sc[ARRAY_LEN_X][ARRAY_LEN_Y];
141
unsigned char array_uc[ARRAY_LEN_X][ARRAY_LEN_Y];
142
short array_s [ARRAY_LEN_X][ARRAY_LEN_Y];
143
unsigned short array_us[ARRAY_LEN_X][ARRAY_LEN_Y];
144
int array_i [ARRAY_LEN_X][ARRAY_LEN_Y];
145
unsigned int array_ui[ARRAY_LEN_X][ARRAY_LEN_Y];
146
long array_l [ARRAY_LEN_X][ARRAY_LEN_Y];
147
unsigned long array_ul[ARRAY_LEN_X][ARRAY_LEN_Y];
148
long long array_ll[ARRAY_LEN_X][ARRAY_LEN_Y];
149
float array_f [ARRAY_LEN_X][ARRAY_LEN_Y];
150
double array_d [ARRAY_LEN_X][ARRAY_LEN_Y];
151
SimpleStruct array_struct[ARRAY_LEN_X][ARRAY_LEN_Y];
152
SimpleStruct* array_structpointers[ARRAY_LEN_X][ARRAY_LEN_Y];
153
int* array_ipointers [ARRAY_LEN_X][ARRAY_LEN_Y];
154
finger array_enum[ARRAY_LEN_X][ARRAY_LEN_Y];
155
finger* array_enumpointers[ARRAY_LEN_X][ARRAY_LEN_Y];
156
const int array_const_i[ARRAY_LEN_X][ARRAY_LEN_Y] = { {10, 11, 12, 13}, {14, 15, 16, 17} };
158
void fn_taking_arrays(SimpleStruct array_struct[ARRAY_LEN_X][ARRAY_LEN_Y]) {}
160
int get_2d_array(int (*array)[ARRAY_LEN_Y], int x, int y){