summaryrefslogtreecommitdiffstats
path: root/build/has/attribute-format-syslog.c
blob: ce988e5cc992f7b71630e1112ab53903ce70dd56 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// Copyright © Tavian Barnes <tavianator@tavianator.com>
// SPDX-License-Identifier: 0BSD

#include <stdio.h>

__attribute__((format(syslog, 1, 2)))
static int foo(const char *format, ...) {
	return 0;
}

int main(void) {
	return foo("%s: %m\n", "main()");
}