view usr/src/tools/smatch/src/validation/c11-alignof.c @ 19241:79022555a4a9

11972 resync smatch Reviewed by: Robert Mustacchi <rm@fingolfin.org> Approved by: Dan McDonald <danmcd@joyent.com>
author John Levon <john.levon@joyent.com>
date Mon, 11 Nov 2019 16:23:50 +0000
parents b73b4fe381d3
children
line wrap: on
line source

static int foo(void)
{
	return _Alignof(short);
}

/*
 * check-name: c11-alignof
 * check-command: test-linearize -std=c11 $file
 *
 * check-output-ignore
 * check-output-contains: ret\\.32 *\\$2
 */