aboutsummaryrefslogtreecommitdiffstats
path: root/meson/test cases/common/215 source set realistic example/devices/virtio-mmio.cc
diff options
context:
space:
mode:
Diffstat (limited to 'meson/test cases/common/215 source set realistic example/devices/virtio-mmio.cc')
-rw-r--r--meson/test cases/common/215 source set realistic example/devices/virtio-mmio.cc16
1 files changed, 16 insertions, 0 deletions
diff --git a/meson/test cases/common/215 source set realistic example/devices/virtio-mmio.cc b/meson/test cases/common/215 source set realistic example/devices/virtio-mmio.cc
new file mode 100644
index 000000000..5dab97e5c
--- /dev/null
+++ b/meson/test cases/common/215 source set realistic example/devices/virtio-mmio.cc
@@ -0,0 +1,16 @@
+#include <iostream>
+#include "common.h"
+#include "virtio.h"
+
+struct VirtioMMIODevice: VirtioDevice {
+ void say_hello();
+};
+
+void VirtioMMIODevice::say_hello()
+{
+ some_virtio_thing();
+ std::cout << ANSI_START << "virtio-mmio is available"
+ << ANSI_END << std::endl;
+}
+
+static VirtioMMIODevice virtio_mmio;