From c6d6720c3026efb74092c021a06f8f2c6d36fb67 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Tue, 7 Jan 2025 11:15:25 -0500 Subject: build: Check for compound literal storage-class support This lets us use them on GCC >= 13, even before C23. --- build/has/compound-literal-storage.c | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 build/has/compound-literal-storage.c (limited to 'build/has') diff --git a/build/has/compound-literal-storage.c b/build/has/compound-literal-storage.c new file mode 100644 index 0000000..e2281e1 --- /dev/null +++ b/build/has/compound-literal-storage.c @@ -0,0 +1,6 @@ +// Copyright © Tavian Barnes +// SPDX-License-Identifier: 0BSD + +int main(void) { + return (static int){0}; +} -- cgit v1.2.3