Blame tests/upstream-test-suite/064_castoperator.cpp
|
Than Ngo |
b7bcaa |
// objective: test linking to the cast operator with and without const
|
|
Than Ngo |
b7bcaa |
// check: struct_foo.xml
|
|
Than Ngo |
b7bcaa |
/**
|
|
Than Ngo |
b7bcaa |
* @brief Foo
|
|
Than Ngo |
b7bcaa |
*
|
|
Than Ngo |
b7bcaa |
* - No autolink for operator int()
|
|
Than Ngo |
b7bcaa |
* - @ref operator int()
|
|
Than Ngo |
b7bcaa |
* - @ref operator int() "title"
|
|
Than Ngo |
b7bcaa |
* - Foo::operator int()
|
|
Than Ngo |
b7bcaa |
* - @ref Foo::operator int()
|
|
Than Ngo |
b7bcaa |
* - @ref Foo::operator int() "title"
|
|
Than Ngo |
b7bcaa |
*
|
|
Than Ngo |
b7bcaa |
* - No autolink for operator int() const
|
|
Than Ngo |
b7bcaa |
* - @ref operator int() const
|
|
Than Ngo |
b7bcaa |
* - @ref operator int() const "title"
|
|
Than Ngo |
b7bcaa |
* - Foo::operator int() const
|
|
Than Ngo |
b7bcaa |
* - @ref Foo::operator int() const
|
|
Than Ngo |
b7bcaa |
* - @ref Foo::operator int() const "title"
|
|
Than Ngo |
b7bcaa |
*/
|
|
Than Ngo |
b7bcaa |
struct Foo {
|
|
Than Ngo |
b7bcaa |
/** @brief Conversion to int */
|
|
Than Ngo |
b7bcaa |
operator int();
|
|
Than Ngo |
b7bcaa |
/** @brief Conversion to int const */
|
|
Than Ngo |
b7bcaa |
operator int() const;
|
|
Than Ngo |
b7bcaa |
};
|