diff options
Diffstat (limited to 'share/gcc-arm-none-eabi/samples/src/cpp/cpp.cc')
-rw-r--r-- | share/gcc-arm-none-eabi/samples/src/cpp/cpp.cc | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/share/gcc-arm-none-eabi/samples/src/cpp/cpp.cc b/share/gcc-arm-none-eabi/samples/src/cpp/cpp.cc new file mode 100644 index 0000000..d9b083a --- /dev/null +++ b/share/gcc-arm-none-eabi/samples/src/cpp/cpp.cc @@ -0,0 +1,19 @@ +#include <stdio.h> + +struct test_class { + test_class () { + m = new char[10]; + printf("In ctor\n"); + } + ~test_class () { + delete m; + printf("In dtor\n"); + } + char * m; +} g; + +int main() +{ + printf("In main\n"); + return 0; +} |