Revision dbd3666e9430729bece211e13f1702f22c42ff43 authored by Stephanie Moreaud on 08 December 2008, 20:21:45 UTC, committed by Stephanie Moreaud on 08 December 2008, 20:21:45 UTC
1 parent cf45576
Raw File
simple-cpp.cpp

/*
 * PM2: Parallel Multithreaded Machine
 * Copyright (C) 2008 "the PM2 team" (see AUTHORS file)
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or (at
 * your option) any later version.
 *
 * This program is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * General Public License for more details.
 */

/* Make sure that C++ programs can be compiled when using Marcel.  */

#include <marcel.h>

#include <cstdlib>
#include <iostream>
#include <fstream>
#include <sstream>
#include <string>

static void *f(void *foo) {
	return NULL;
}

int main(int argc, char *argv[]) {
	int err;
	marcel_t t;

	marcel_init(&argc, argv);
	err = marcel_create(&t,NULL,f,NULL);
	MA_BUG_ON(err != 0);
	marcel_end();

	return 0;
}
back to top