comparison 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
comparison
equal deleted inserted replaced
145:1830386684a0 152:2b5abeee2509
1 // PR c++/67960
2 // { dg-do compile }
3 // { dg-additional-options "-Werror -fmax-errors=1" }
4 __attribute__((deprecated)) void doNothing(){}
5
6 int
7 main()
8 {
9 doNothing(); // { dg-error "is deprecated" }
10 }
11
12 // { dg-message "all warnings being treated as errors" "" { target *-*-* } 0 }
13 // { dg-bogus "compilation terminated" "" { target *-*-* } 0 }