diff options
author | Joseph Myers <joseph@codesourcery.com> | 2019-11-18 17:41:40 +0000 |
---|---|---|
committer | Joseph Myers <jsm28@gcc.gnu.org> | 2019-11-18 17:41:40 +0000 |
commit | 092508a07975a00b3bc7c4c6ef551d5b6dc2c193 (patch) | |
tree | c89eb335e50073d6894de650c5344e92b4195c93 /gcc/tree-loop-distribution.c | |
parent | 9d2b80ea51e42d5011badf2d654fb3fd93289fe3 (diff) | |
download | gcc-092508a07975a00b3bc7c4c6ef551d5b6dc2c193.zip gcc-092508a07975a00b3bc7c4c6ef551d5b6dc2c193.tar.gz gcc-092508a07975a00b3bc7c4c6ef551d5b6dc2c193.tar.bz2 |
Add more C2x attributes tests.
This patch adds more tests of C2x attributes, where I found cases that
were handled correctly by my patches but missing from the original
tests. Tests are added for -std=c11 -pedantic handling of C2x
attribute syntax and corresponding -Wc11-c2x-compat handling; for
struct [[deprecated]]; and for the [[__fallthrough__]] spelling of
[[fallthrough]] in the case of valid fallthrough attributes.
Tested for x86_64-pc-linux-gnu.
* gcc.dg/c11-attr-syntax-1.c, gcc.dg/c11-attr-syntax-2.c,
gcc.dg/c11-attr-syntax-3.c, gcc.dg/c2x-attr-syntax-4.c: New tests.
* gcc.dg/c2x-attr-deprecated-1.c: Also test struct [[deprecated]].
* gcc.dg/c2x-attr-fallthrough-1.c: Also test [[__fallthrough__]].
From-SVN: r278418
Diffstat (limited to 'gcc/tree-loop-distribution.c')
0 files changed, 0 insertions, 0 deletions