[PATCH] D94829: [NFC] Add -std=c11 to attr-availability.c
Justice Adams via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Jan 15 14:38:00 PST 2021
justice_adams created this revision.
justice_adams added reviewers: nigelp-xmos, aaron.ballman.
justice_adams added a project: clang.
justice_adams requested review of this revision.
This test will fail with any toolchains that don't default to C11.
Adding this switch to the clang invocation in the test fixes the issue.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D94829
Files:
clang/test/Parser/attr-availability.c
Index: clang/test/Parser/attr-availability.c
===================================================================
--- clang/test/Parser/attr-availability.c
+++ clang/test/Parser/attr-availability.c
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 -fsyntax-only -verify %s
+// RUN: %clang_cc1 -std=c11 -fsyntax-only -verify %s
#if !__has_feature(attribute_availability)
# error 'availability' attribute is not available
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D94829.317077.patch
Type: text/x-patch
Size: 410 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20210115/c5905813/attachment.bin>
More information about the cfe-commits
mailing list