OSDN Git Service

[NFC] Add -std=c11 to attr-availability.c
authorDouglas Yung <douglas.yung@sony.com>
Sat, 16 Jan 2021 05:02:26 +0000 (21:02 -0800)
committerDouglas Yung <douglas.yung@sony.com>
Sat, 16 Jan 2021 05:05:49 +0000 (21:05 -0800)
commitbe68c9222b85815612e6bd8bc606a87e3111a0fb
tree153372a48df889bc0ada22271564f0e367421f83
parent8fd8ff1f67e4919954162ccf5f0e9b5e9c2d53fb
[NFC] Add -std=c11 to attr-availability.c

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.

Patch by Justice Adams!

Reviewed By: dyung

Differential Revision: https://reviews.llvm.org/D94829
clang/test/Parser/attr-availability.c