summaryrefslogtreecommitdiffstats
path: root/test cases/common/119 cpp and asm/trivial.cc
blob: 19d5e944d14e61e0f3dca2d047bd03927858005f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include<iostream>

extern "C" {
  int get_retval(void);
}

int main(void) {
  std::cout << "C++ seems to be working." << std::endl;
#if defined(USE_ASM)
  return get_retval();
#elif defined(NO_USE_ASM)
  return 0;
#else
  #error "Forgot to pass asm define"
#endif
}