Skip to content

Commit a01b4e8

Browse files
author
ripley
committed
add some regression examples
git-svn-id: https://svn.r-project.org/R/trunk@87476 00db46b3-68df-0310-9c12-caf00c1e9a41
1 parent 294bd0a commit a01b4e8

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/library/stats/tests/loglin.R

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
### examples from investigating UBSAN reports in vcdExtra::seq_loglm
2+
3+
x <- margin.table(Titanic, 1)
4+
## Next two had UBSAN reports in R 4.5.0 from using --x on a 0-length R-allocated array.
5+
loglin(x, NULL)
6+
loglin(x, list())
7+
8+
loglin(x, list(1))
9+
10+
## failed in R 4.4.2 as R code assumed >= 2 parameters
11+
loglin(x, NULL, param = TRUE)
12+
loglin(x, list(1), param = TRUE)

0 commit comments

Comments
 (0)