Displaying 1 result from an estimated 1 matches for "throwa".
Did you mean:
throw
2012 Mar 14
0
[LLVMdev] ARM EHABI support in LLVM + clang
...cpp -funwind-tables -ccc-host-triple arm-linux-gnueabi -mcpu=cortex-a9 -emit-llvm -c -o a.bc
$LLVM_BIN_PATH/llc -mtriple=arm-linux-gnueabi -arm-enable-ehabi -arm-enable-ehabi-descriptors -march=arm a.bc
arm-linux-gnueabi-g++ --sysroot=$SYSROOT -static a.s -o a.bin
==== a.cpp ====
class A {};
void throwA(int x)
{
if(x == 0)
throw A();
}
int main()
{
try {
throwA(0);
} catch (A a) {
return 0;
}
return 1;
}
Thanks in advance
Senthil Kumar