diff options
author | alk3pInjection <webmaster@raspii.tech> | 2024-02-04 16:16:35 +0800 |
---|---|---|
committer | alk3pInjection <webmaster@raspii.tech> | 2024-02-04 16:16:35 +0800 |
commit | abdaadbcae30fe0c9a66c7516798279fdfd97750 (patch) | |
tree | 00a54a6e25601e43876d03c1a4a12a749d4a914c /share/gcc-arm-none-eabi/samples/src/cpp/cpp.cc |
https://developer.arm.com/downloads/-/arm-gnu-toolchain-downloads
Change-Id: I7303388733328cd98ab9aa3c30236db67f2e9e9c
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; +} |