C default arguments are allowed, so migrated the error test to a proper test, as no error or warning is expected.
14 lines
185 B
OpenEdge ABL
14 lines
185 B
OpenEdge ABL
%module default_args_c
|
|
|
|
/* Default arguments for C code */
|
|
int foo1(int x = 42 || 3);
|
|
int foo43(int x = 42 | 3);
|
|
|
|
%{
|
|
int foo1(int x) {
|
|
return x;
|
|
}
|
|
int foo43(int x) {
|
|
return x;
|
|
}
|
|
%}
|