mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-09 10:31:14 +00:00
065c0b95a3
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8158 91177308-0d34-0410-b5e6-96231b3b80d8
14 lines
179 B
C++
14 lines
179 B
C++
// Test throwing a constant int
|
|
#include <stdio.h>
|
|
|
|
static void foo() { throw 5; }
|
|
int main() {
|
|
try {
|
|
foo();
|
|
} catch (...) {
|
|
printf("All ok\n");
|
|
return 0;
|
|
}
|
|
return 1;
|
|
}
|