summaryrefslogtreecommitdiffstats
path: root/test cases/common/215 source set realistic example/devices/virtio-pci.cc
blob: 7df7a82b7039b28c72b06ae0133d9c080e52fba4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include <iostream>
#include "common.h"
#include "virtio.h"

struct VirtioPCIDevice: VirtioDevice {
    void say_hello();
};

void VirtioPCIDevice::say_hello()
{
    some_virtio_thing();
    std::cout << ANSI_START << "virtio-pci is available"
              << ANSI_END << std::endl;
}

static VirtioPCIDevice virtio_pci;