tests: Handle test failures for ust-constructors with heap allocation
[lttng-tools.git] / tests / utils / testapp / gen-ust-events-constructor / uses_heap.cpp
diff --git a/tests/utils/testapp/gen-ust-events-constructor/uses_heap.cpp b/tests/utils/testapp/gen-ust-events-constructor/uses_heap.cpp
new file mode 100644 (file)
index 0000000..35933de
--- /dev/null
@@ -0,0 +1,16 @@
+/*
+ * Copyright 2024 Kienan Stewart <kstewart@efficios.com>
+ *
+ * SPDX-License-Identifier: LGPL-2.1-only
+ */
+
+#include <lttng/ust-compiler.h>
+
+int main()
+{
+#ifdef LTTNG_UST_ALLOCATE_COMPOUND_LITERAL_ON_HEAP
+       return 0;
+#else
+       return 1;
+#endif
+}
This page took 0.024932 seconds and 4 git commands to generate.