update bad case
This commit is contained in:
parent
4e7e66a94b
commit
ec5098d376
1 changed files with 7 additions and 4 deletions
|
@ -124,10 +124,13 @@ int main() {
|
||||||
std::cout << NAMEOF( std::string ) << std::endl; // string
|
std::cout << NAMEOF( std::string ) << std::endl; // string
|
||||||
|
|
||||||
// Bad case
|
// Bad case
|
||||||
std::cout << NAMEOF(std::string()) << std::endl; // string()
|
std::cout << NAMEOF(std::string()) << std::endl; // "string()"
|
||||||
std::cout << NAMEOF(std::string{}) << std::endl; // string{}
|
std::cout << NAMEOF(std::string{}) << std::endl; // "string{}"
|
||||||
std::cout << NAMEOF(std::string{"test"}) << std::endl; // string{"test"}
|
std::cout << NAMEOF(std::string{"test"}) << std::endl; // "string{"test"}"
|
||||||
std::cout << NAMEOF(ptrvar[0]) << std::endl; // ptrvar[0]
|
std::cout << NAMEOF(ptrvar[0]) << std::endl; // "ptrvar[0]"
|
||||||
|
std::cout << NAMEOF(intvar + intvar) << std::endl; // " intvar"
|
||||||
|
std::cout << NAMEOF(NAMEOF(intvar)) << std::endl; // "NAMEOF(intvar)"
|
||||||
|
std::cout << NAMEOF(std::cout << intvar << std::endl) << std::endl; // "endl"
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue