summaryrefslogtreecommitdiffstats
path: root/testsuites/libtests/dl05/dl-cpp.cpp
blob: fcb9e0af065f99f704b89c89facdb277bfd88baf (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/*
 * The base image needs this to include the RTTI data.
 */
#include <cstdio>
#include <stdexcept>
#include "dl-load.h"
void exception_base(bool istrue)
{
  printf("exception_base called\n");
  if (istrue)
  {
    throw std::runtime_error("dummy call to link in symbols");
  }
}