Mercurial > hg > CbC > CbC_gcc
comparison gcc/testsuite/g++.dg/parse/semicolon4.C @ 145:1830386684a0
gcc-9.2.0
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 11:34:05 +0900 |
parents | 04ced10e8804 |
children |
comparison
equal
deleted
inserted
replaced
131:84e7813d76e9 | 145:1830386684a0 |
---|---|
23 { | 23 { |
24 int i; | 24 int i; |
25 } const; // { dg-error "'const' can only be specified for objects and functions" } | 25 } const; // { dg-error "'const' can only be specified for objects and functions" } |
26 | 26 |
27 void foo ( | 27 void foo ( |
28 struct E2 | 28 struct E2 // { dg-warning "deprecated" "" { target c++2a } } |
29 { // { dg-error "types may not be defined in parameter types" } | 29 { // { dg-error "types may not be defined in parameter types" } |
30 int i; | 30 int i; |
31 } volatile); | 31 } volatile); |
32 | 32 |
33 void bar ( | 33 void bar ( |