URI:
       tests/cc: Add 0042-struct-enum error test - scc - simple c99 compiler
  HTML git clone git://git.simple-cc.org/scc
   DIR Log
   DIR Files
   DIR Refs
   DIR README
   DIR LICENSE
       ---
   DIR commit a7a08bb3d51b852995346c96d94265ea936731e5
   DIR parent 5136c8c992d0d99e593e447a0e74aa79dc50fb18
  HTML Author: Roberto E. Vargas Caballero <k0ga@shike2.net>
       Date:   Fri,  5 Jun 2026 09:38:00 +0200
       
       tests/cc: Add 0042-struct-enum error test
       
       This test is marked as TODO because the error recovery mechanism is
       not working correctly as it was already known. Every of the error
       conditions of the test were manually tested.
       
       Diffstat:
         A tests/cc/error/0042-struct-enum.c   |      11 +++++++++++
         M tests/cc/error/scc-tests.lst        |       1 +
       
       2 files changed, 12 insertions(+), 0 deletions(-)
       ---
   DIR diff --git a/tests/cc/error/0042-struct-enum.c b/tests/cc/error/0042-struct-enum.c
       @@ -0,0 +1,11 @@
       +/*
       +PATTERN:
       +0042-struct-enum.c:9: error: unexpected 'const'
       +0042-struct-enum.c:10: error: unexpected 'const'
       +0042-struct-enum.c:11: error: unexpected 'const'
       +.
       +*/
       +
       +struct const tag1 { int v; };
       +union const tag2 { int v; };
       +enum const tag3 { VALUE };
   DIR diff --git a/tests/cc/error/scc-tests.lst b/tests/cc/error/scc-tests.lst
       @@ -39,3 +39,4 @@
        0039-struct.c
        0040-vararg.c
        0041-iconst.c
       +0042-struct-enum.c [TODO]