Module Name:    src
Committed By:   christos
Date:           Mon Mar  6 23:07:42 UTC 2017

Added Files:
        src/tests/usr.bin/xlint/lint1: d_bltinoffsetof.c

Log Message:
new test


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 src/tests/usr.bin/xlint/lint1/d_bltinoffsetof.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Added files:

Index: src/tests/usr.bin/xlint/lint1/d_bltinoffsetof.c
diff -u /dev/null src/tests/usr.bin/xlint/lint1/d_bltinoffsetof.c:1.1
--- /dev/null	Mon Mar  6 18:07:42 2017
+++ src/tests/usr.bin/xlint/lint1/d_bltinoffsetof.c	Mon Mar  6 18:07:42 2017
@@ -0,0 +1,12 @@
+
+struct foo {
+	int a;
+	char *b;
+};
+
+
+int
+main(void)
+{
+	return __builtin_offsetof(struct foo, b);
+}

Reply via email to