mirror of
https://github.com/postgres/postgres.git
synced 2026-04-20 22:00:13 -04:00
test_cplusplusext: Add C++ pg_fallthrough test case
Discussion: https://www.postgresql.org/message-id/flat/76a8efcd-925a-4eaf-bdd1-d972cd1a32ff%40eisentraut.org
This commit is contained in:
parent
0284e07599
commit
2f2c9d8363
1 changed files with 10 additions and 0 deletions
|
|
@ -55,5 +55,15 @@ test_cplusplus_add(PG_FUNCTION_ARGS)
|
|||
list_free(list);
|
||||
pfree(node);
|
||||
|
||||
switch (a)
|
||||
{
|
||||
case 1:
|
||||
elog(DEBUG1, "1");
|
||||
pg_fallthrough;
|
||||
case 2:
|
||||
elog(DEBUG1, "2");
|
||||
break;
|
||||
}
|
||||
|
||||
PG_RETURN_INT32(a + b);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue