Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/g++.dg/ipa/pr91956.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
/* { dg-do compile } */ /* { dg-options "-Os -std=c++11 -fno-strict-aliasing -fno-tree-fre -fno-tree-vrp" } */ int count = 0; struct VB { VB() {++count;} }; struct B : virtual VB { B() : B(42) {} B(int) {} }; struct D : B { D() {} D(int) : D() {} }; int main() { D d{42}; if (count != 1) __builtin_abort(); }