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/e5f99353befc
branches:  trunk
changeset: 351952:e5f99353befc
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 81189a6725c2 -r e5f99353befc 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