Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/g++.dg/diagnostic/pr67960.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 { target c++14 } } // { dg-additional-options "-Werror -fmax-errors=1" } [[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 }