summaryrefslogtreecommitdiffstats
path: root/scripts/cc-can-link.sh
blob: 6efcead3198989d2ab2ab6772c72d8bb61c89c4e (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh
# SPDX-License-Identifier: GPL-2.0

cat << "END" | $@ -x c - -o /dev/null >/dev/null 2>&1
#include <stdio.h>
int main(void)
{
	printf("");
	return 0;
}
END