r278418 - in /trunk/gcc/testsuite: ChangeLog gc...
jsm28@gcc.gnu.org
jsm28@gcc.gnu.org
Mon Nov 18 17:41:00 GMT 2019
Author: jsm28
Date: Mon Nov 18 17:41:40 2019
New Revision: 278418
URL: https://gcc.gnu.org/viewcvs?rev=278418&root=gcc&view=rev
Log:
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__]].
Added:
trunk/gcc/testsuite/gcc.dg/c11-attr-syntax-1.c
trunk/gcc/testsuite/gcc.dg/c11-attr-syntax-2.c
trunk/gcc/testsuite/gcc.dg/c11-attr-syntax-3.c
trunk/gcc/testsuite/gcc.dg/c2x-attr-syntax-4.c
Modified:
trunk/gcc/testsuite/ChangeLog
trunk/gcc/testsuite/gcc.dg/c2x-attr-deprecated-1.c
trunk/gcc/testsuite/gcc.dg/c2x-attr-fallthrough-1.c
More information about the Gcc-cvs
mailing list