File: test-cxx-compile.cpp

package info (click to toggle)
evemu 2.7.0-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 6,260 kB
  • sloc: sh: 4,331; ansic: 1,718; python: 1,186; makefile: 125; cpp: 11
file content (17 lines) | stat: -rw-r--r-- 361 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/*
 * Test that compiling+linking works with a C++ compiler.
 */

#include <stdio.h>
#include <evemu.h>

#define UNUSED __attribute__((unused))

int main(int argc UNUSED, char **argv UNUSED) {
    struct evemu_device *dummy = evemu_new("dummy");
    if(!dummy) {
        printf("This should really not be happening.\n");
        return 1;
    }
    return 0;
}