Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/tests/usr.bin/xlint/lint1 new test



details:   https://anonhg.NetBSD.org/src/rev/7b73fa2f2064
branches:  trunk
changeset: 822203:7b73fa2f2064
user:      christos <christos%NetBSD.org@localhost>
date:      Mon Mar 06 23:07:42 2017 +0000

description:
new test

diffstat:

 tests/usr.bin/xlint/lint1/d_bltinoffsetof.c |  12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)

diffs (16 lines):

diff -r bc3a1553aa5c -r 7b73fa2f2064 tests/usr.bin/xlint/lint1/d_bltinoffsetof.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/usr.bin/xlint/lint1/d_bltinoffsetof.c       Mon Mar 06 23:07:42 2017 +0000
@@ -0,0 +1,12 @@
+
+struct foo {
+       int a;
+       char *b;
+};
+
+
+int
+main(void)
+{
+       return __builtin_offsetof(struct foo, b);
+}



Home | Main Index | Thread Index | Old Index