mirror of
https://github.com/genodelabs/genode.git
synced 2025-06-18 15:18:20 +00:00
Move repositories to 'repos/' subdirectory
This patch changes the top-level directory layout as a preparatory step for improving the tools for managing 3rd-party source codes. The rationale is described in the issue referenced below. Issue #1082
This commit is contained in:
37
repos/base-linux/src/test/lx_hybrid_exception/main.cc
Normal file
37
repos/base-linux/src/test/lx_hybrid_exception/main.cc
Normal file
@ -0,0 +1,37 @@
|
||||
/*
|
||||
* \brief Test if the exception mechanism works in hybrid applications
|
||||
* \author Christian Prochaska
|
||||
* \date 2011-11-22
|
||||
*/
|
||||
|
||||
/*
|
||||
* Copyright (C) 2011-2013 Genode Labs GmbH
|
||||
*
|
||||
* This file is part of the Genode OS framework, which is distributed
|
||||
* under the terms of the GNU General Public License version 2.
|
||||
*/
|
||||
|
||||
#include <base/printf.h>
|
||||
|
||||
using namespace Genode;
|
||||
|
||||
class Test_exception { };
|
||||
|
||||
/**
|
||||
* Main program
|
||||
*/
|
||||
int main(int, char **)
|
||||
{
|
||||
printf("--- lx_hybrid exception test ---\n");
|
||||
|
||||
try {
|
||||
printf("Throwing Test_exception\n");
|
||||
throw Test_exception();
|
||||
} catch(Test_exception) {
|
||||
printf("Caught Test_exception\n");
|
||||
}
|
||||
|
||||
printf("--- returning from main ---\n");
|
||||
|
||||
return 0;
|
||||
}
|
3
repos/base-linux/src/test/lx_hybrid_exception/target.mk
Normal file
3
repos/base-linux/src/test/lx_hybrid_exception/target.mk
Normal file
@ -0,0 +1,3 @@
|
||||
TARGET = test-lx_hybrid_exception
|
||||
SRC_CC = main.cc
|
||||
LIBS = lx_hybrid
|
Reference in New Issue
Block a user