*** empty log message ***
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@1029 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
3348649a07
commit
8389f6e65d
8 changed files with 326 additions and 66 deletions
|
|
@ -60,6 +60,22 @@ int math_crash(int x, int y) {
|
|||
return x/y;
|
||||
}
|
||||
|
||||
void type_crash(int a, short b, char c, unsigned long d, float f, double g) {
|
||||
int la;
|
||||
short lb;
|
||||
char lc;
|
||||
long ld;
|
||||
float lf;
|
||||
double lg;
|
||||
|
||||
la = a;
|
||||
lb = b;
|
||||
lc = c;
|
||||
ld = ld;
|
||||
lf = lf;
|
||||
lg = lg;
|
||||
assert(a);
|
||||
}
|
||||
|
||||
#ifdef NEED_MAIN
|
||||
|
||||
|
|
@ -94,6 +110,8 @@ int main(int argc, char **argv) {
|
|||
blowheap_crash();
|
||||
} else if (strcmp(argv[1],"overflow") == 0) {
|
||||
overflow_crash();
|
||||
} else if (strcmp(argv[1],"type") == 0) {
|
||||
type_crash(0,2,'x',420000,3.14159,2.1828);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue