File: test-cxx-compile.cpp

package info (click to toggle)
grail 3.1.1-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,296 kB
  • sloc: sh: 11,416; cpp: 5,636; ansic: 1,587; makefile: 254
file content (15 lines) | stat: -rw-r--r-- 274 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/*
 * Test that compile+link works with a C++ compiler.
 */

#include <stdio.h>
#include <oif/grail.h>

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