Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/g++.dg/diagnostic/pr67960-2.C @ 152:2b5abeee2509
update gcc11
author | anatofuz |
---|---|
date | Mon, 25 May 2020 07:50:57 +0900 |
parents | |
children |
line wrap: on
line source
// PR c++/67960 // { dg-do compile } // { dg-additional-options "-Werror -fmax-errors=1" } __attribute__((deprecated)) void doNothing(){} int main() { doNothing(); // { dg-error "is deprecated" } } // { dg-message "all warnings being treated as errors" "" { target *-*-* } 0 } // { dg-bogus "compilation terminated" "" { target *-*-* } 0 }