diff options
Diffstat (limited to 'gdb/testsuite/gdb.fortran/mixed-lang-stack.cpp')
-rw-r--r-- | gdb/testsuite/gdb.fortran/mixed-lang-stack.cpp | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/gdb/testsuite/gdb.fortran/mixed-lang-stack.cpp b/gdb/testsuite/gdb.fortran/mixed-lang-stack.cpp index 39ff6c2..b5ae7da 100644 --- a/gdb/testsuite/gdb.fortran/mixed-lang-stack.cpp +++ b/gdb/testsuite/gdb.fortran/mixed-lang-stack.cpp @@ -26,17 +26,7 @@ class base_one class base_two { public: - base_two () - { - string = strdup ("Something in C++"); - } - - ~base_two () - { - free (string); - } - - char *string = nullptr; + const char *string = "Something in C++"; float val = 3.5; }; |