Blame tests/upstream-test-suite/075_argmatch.cpp

Than Ngo b7bcaa
// objective: test argument matching in particular for unnamed types
Than Ngo b7bcaa
// check: struct_foo.xml
Than Ngo b7bcaa
/** @brief Foo */
Than Ngo b7bcaa
struct Foo {
Than Ngo b7bcaa
    void foo(float value);
Than Ngo b7bcaa
    void foo(unsigned value);
Than Ngo b7bcaa
    void foo(unsigned long);
Than Ngo b7bcaa
    void foo(signed long);
Than Ngo b7bcaa
    void foo(const struct Foo);
Than Ngo b7bcaa
    void foo(const char * const, const double param2);
Than Ngo b7bcaa
};
Than Ngo b7bcaa
Than Ngo b7bcaa
/** @brief Float */
Than Ngo b7bcaa
void Foo::foo(float) {}
Than Ngo b7bcaa
Than Ngo b7bcaa
/** @brief Unsigned int */
Than Ngo b7bcaa
void Foo::foo(unsigned value) {}
Than Ngo b7bcaa
Than Ngo b7bcaa
/** @brief Unnamed unsigned long */
Than Ngo b7bcaa
void Foo::foo(unsigned long) {}
Than Ngo b7bcaa
Than Ngo b7bcaa
/** @brief Unnamed signed long */
Than Ngo b7bcaa
void Foo::foo(signed long) {}
Than Ngo b7bcaa
Than Ngo b7bcaa
/** @brief Unnamed struct foo */
Than Ngo b7bcaa
void Foo::foo(const struct Foo) {}
Than Ngo b7bcaa
Than Ngo b7bcaa
/** @brief Unnamed const pointer */
Than Ngo b7bcaa
void Foo::foo(const char * const, const double param2);
Than Ngo b7bcaa