diff options
Diffstat (limited to 'tests/test.cpp')
| -rw-r--r-- | tests/test.cpp | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/tests/test.cpp b/tests/test.cpp new file mode 100644 index 0000000..5538ba8 --- /dev/null +++ b/tests/test.cpp @@ -0,0 +1,32 @@ +#include <iostream> +#include <string> + +namespace my_namespace { + void namespaced_function() { + std::cout << "Namespaced function" << std::endl; + } + + class MyClass { + public: + void myMethod() { + std::cout << "Method inside class" << std::endl; + } + }; +} + +struct MyStruct { + int x; + void structMethod() { + std::cout << "Method inside struct" << std::endl; + } +}; + +void global_hello() { + std::cout << "Global hello" << std::endl; +} + +int main() { + global_hello(); + my_namespace::namespaced_function(); + return 0; +} |
