Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/g++.dg/pch/Wmismatched-tags.C @ 145:1830386684a0
gcc-9.2.0
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 11:34:05 +0900 |
parents | |
children |
line wrap: on
line source
/* PR c++/61339 - add mismatch between struct and class Verify that declarations that don't match definitions in precompiled headers are diagnosed. { dg-options "-Wall -Wmismatched-tags" } */ #include "Wmismatched-tags.H" class PCHDeclaredClass; struct PCHDeclaredStruct; struct PCHDefinedClass; // { dg-warning "declared with a mismatched class-key 'struct'" } class PCHDefinedStruct; // { dg-warning "declared with a mismatched class-key 'class'" } class PCHDeclaredClass { }; struct PCHDeclaredStruct { };