~chasedouglas/grail/work-in-progress

« back to all changes in this revision

Viewing changes to test/test-cxx-compile.cpp

  • Committer: Jussi Pakkanen
  • Date: 2012-03-06 08:22:38 UTC
  • mfrom: (190.1.4 utouch-grail)
  • Revision ID: jussi.pakkanen@canonical.com-20120306082238-qd1dy1gpc8zjrmaw
Merged compile/link tests.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Test that compile+link works with a C++ compiler.
 
3
 */
 
4
 
 
5
#include <stdio.h>
 
6
#include <utouch/grail.h>
 
7
 
 
8
int main(int argc, char **argv) {
 
9
  void *dummy = (void*)grail_new;
 
10
  if (!dummy) {
 
11
    printf("This really should not be happening.\n");
 
12
    return 1;
 
13
  }
 
14
  return 0;
 
15
}