aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/indent/tests/offsetof.0
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/indent/tests/offsetof.0')
-rw-r--r--usr.bin/indent/tests/offsetof.04
1 files changed, 4 insertions, 0 deletions
diff --git a/usr.bin/indent/tests/offsetof.0 b/usr.bin/indent/tests/offsetof.0
new file mode 100644
index 000000000000..c1870fa0daa3
--- /dev/null
+++ b/usr.bin/indent/tests/offsetof.0
@@ -0,0 +1,4 @@
+/* See r303718 */
+void t(void) {
+ int n = malloc(offsetof(struct s, f) + 1);
+}