blob: 27ac9289695483bdc438988cb93c626bc31e71f8 [file] [log] [blame]
Masahiro Yamada5b1f1f42013-12-11 20:11:34 +09001#!/bin/sh
2# Test for gcc '-fstack-usage' support
3# Copyright (C) 2013, Masahiro Yamada <yamada.m@jp.panasonic.com>
4#
5# SPDX-License-Identifier: GPL-2.0+
6#
7
8TMP="$$"
9
10cat <<END | $@ -Werror -fstack-usage -x c - -c -o $TMP >/dev/null 2>&1 \
11 && echo "y"
12int main(void)
13{
14 return 0;
15}
16END
17
18rm -f $TMP $TMP.su