tests: test_ust_constructor: Split test_ust_constructor binary
[lttng-tools.git] / tests / utils / testapp / gen-ust-events-constructor / obj-a.cpp
diff --git a/tests/utils/testapp/gen-ust-events-constructor/obj-a.cpp b/tests/utils/testapp/gen-ust-events-constructor/obj-a.cpp
new file mode 100644 (file)
index 0000000..58c5c94
--- /dev/null
@@ -0,0 +1,29 @@
+/*
+ * Copyright (C) 2024 Kienan Stewart <kstewart@efficios.com>
+ *
+ * SPDX-License-Identifer: LGPL-2.1-only
+ */
+
+#include "obj-a.h"
+#include "tp-a.h"
+#include "tp.h"
+
+Obj::Obj(const char *_msg) : msg(_msg)
+{
+       tracepoint(tp, constructor_cplusplus, msg);
+}
+
+Obj::~Obj()
+{
+       tracepoint(tp, destructor_cplusplus, msg);
+}
+
+Obja::Obja(const char *_msg) : msg(_msg)
+{
+       tracepoint(tp_a, constructor_cplusplus_provider_static_archive, msg);
+}
+
+Obja::~Obja()
+{
+       tracepoint(tp_a, destructor_cplusplus_provider_static_archive, msg);
+}
This page took 0.023097 seconds and 4 git commands to generate.