mangle-ms-back-references.cpp [plain text]
void f1(const char* a, const char* b) {}
void f2(const char* a, char* b) {}
void f3(int a, const char* b, const char* c) {}
const char *f4(const char* a, const char* b) { return 0; }
void f5(char const* a, unsigned int b, char c, void const* d, char const* e, unsigned int f) {}
void f6(bool a, bool b) {}
void f7(int a, int* b, int c, int* d, bool e, bool f, bool* g) {}
struct S {
void mbb(bool a, bool b) {}
};
void g1(struct S a) {}
void g2(struct S a, struct S b) {}
void g3(struct S a, struct S b, struct S* c, struct S* d) {}
void g4(const char* a, struct S* b, const char* c, struct S* d) {
b->mbb(false, false);
}
typedef unsigned int uintptr_t;
typedef unsigned int size_t;
void *h(size_t a, uintptr_t b) { return 0; }
typedef void (*VoidFunc)();
typedef int* (*PInt3Func)(int* a, int* b);
void h1(const char* a, const char* b, VoidFunc c, VoidFunc d) {}
void h2(void (*f_ptr)(void *), void *arg) {}
PInt3Func h3(PInt3Func x, PInt3Func y, int* z) { return 0; }