Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/g++.dg/init/ref18.C @ 152:2b5abeee2509
update gcc11
author | anatofuz |
---|---|
date | Mon, 25 May 2020 07:50:57 +0900 |
parents | 1830386684a0 |
children |
line wrap: on
line source
// PR c++/49395 volatile int foo(); // { dg-warning "deprecated" "" { target c++2a } } struct A { volatile int i; }; typedef volatile int vi; volatile int i; const int& ir1 = foo(); //const int& ir2 = A().i; // line 8 const int& ir3 = static_cast<volatile int>(i); const int& ir4 = vi(); // line 10