Debian Codegraph @

Tests/RunCMake/Android/android.cxx

raw
1 #include "android.h"
2
3 #ifndef STL_NONE
4 # include <cmath>
5 # include <cstdio>
6 # ifndef STL_SYSTEM
7 # include <exception>
8 # include <typeinfo>
9 # ifndef STL_STLPORT
10 # include <cxxabi.h>
11 # endif
12 # ifndef STL_GABI
13 # include <iostream>
14 # include <string>
15 # endif
16 # endif
17 #endif
18
19 int main()
20 {
21 #if !defined(STL_NONE)
22 // Require -lm implied by linking as C++.
23 std::printf("%p\n", static_cast<double (*)(double)>(&std::sin));
24 #endif
25 #if defined(STL_NONE)
26 return 0;
27 #elif defined(STL_SYSTEM)
28 return 0;
29 #else
30 try {
31 delete (new int);
32 } catch (std::exception const& e) {
33 # if defined(STL_GABI)
34 e.what();
35 typeid(e).name();
36 # else
37 std::cerr << e.what() << std::endl;
38 std::cerr << typeid(e).name() << std::endl;
39 # endif
40 }
41 # if defined(STL_GABI)
42 return 0;
43 # else
44 std::string s;
45 return static_cast<int>(s.size());
46 # endif
47 #endif
48 }