1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72
|
#ifndef TEST_INTEROP_CXX_NAMESPACE_INPUTS_FREE_FUNCTION_H
#define TEST_INTEROP_CXX_NAMESPACE_INPUTS_FREE_FUNCTION_H
namespace FunctionsNS1 {
inline const char *basicFunctionTopLevel() {
return "FunctionsNS1::basicFunctionTopLevel";
}
inline const char *forwardDeclared();
inline const char *definedOutOfLine();
struct X {};
inline const char *operator+(X, X) { return "FunctionsNS1::operator+(X, X)"; }
} // namespace FunctionsNS1
namespace FunctionsNS1 {
inline const char *forwardDeclared() { return "FunctionsNS1::forwardDeclared"; }
} // namespace FunctionsNS1
inline const char *FunctionsNS1::definedOutOfLine() {
return "FunctionsNS1::definedOutOfLine";
}
namespace FunctionsNS1 {
namespace FunctionsNS2 {
inline const char *basicFunctionSecondLevel() {
return "FunctionsNS1::FunctionsNS2::basicFunctionSecondLevel";
}
} // namespace FunctionsNS2
} // namespace FunctionsNS1
namespace FunctionsNS1 {
namespace FunctionsNS2 {
namespace FunctionsNS3 {
inline const char *basicFunctionLowestLevel() {
return "FunctionsNS1::FunctionsNS2::FunctionsNS3::basicFunctionLowestLevel";
}
} // namespace FunctionsNS3
} // namespace FunctionsNS2
} // namespace FunctionsNS1
namespace FunctionsNS1 {
inline const char *definedInDefs();
}
namespace FunctionsNS1 {
inline const char *sameNameInChild() { return "FunctionsNS1::sameNameInChild"; }
inline const char *sameNameInSibling() {
return "FunctionsNS1::sameNameInSibling";
}
namespace FunctionsNS2 {
inline const char *sameNameInChild() {
return "FunctionsNS1::FunctionsNS2::sameNameInChild";
}
} // namespace FunctionsNS2
} // namespace FunctionsNS1
namespace FunctionsNS4 {
inline const char *sameNameInSibling() {
return "FunctionsNS4::sameNameInSibling";
}
} // namespace FunctionsNS4
namespace FunctionsNS1 {
namespace FunctionsNS2 {
namespace FunctionsNS3 {
struct Y {};
inline bool operator==(Y, Y) { return true; }
} // namespace FunctionsNS3
} // namespace FunctionsNS2
} // namespace FunctionsNS1
#endif // TEST_INTEROP_CXX_NAMESPACE_INPUTS_FREE_FUNCTION_H
|