Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/g++.dg/lto/odr-3_1.C @ 158:494b0b89df80 default tip
...
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 25 May 2020 18:13:55 +0900 |
parents | 1830386684a0 |
children |
line wrap: on
line source
typedef struct YYSTYPE { // { dg-lto-message "type" 2 } // We get two notes here: // note: a different type is defined in another translation unit // note: a type with different number of fields is defined in another translation unit } YYSTYPE; union yyalloc { // { dg-lto-message "type" 2 } // We get here three notes: // note: a different type is defined in another translation unit // note: type 'union yyalloc' itself violates the C++ One Definition Rule short yyss; YYSTYPE yyvs; // { dg-lto-message "field of same name but different type is defined in another translation unit" } }; yyalloc a; // { dg-lto-message "'a' was previously declared here" }