Fortran: Fix PR 47485.
[gcc.git] / gcc / testsuite / g++.dg / diagnostic / pr67960.C
blobd7b1a2d0811308c256f950c2add61402631741a5
1 // PR c++/67960
2 // { dg-do compile { target c++14 } }
3 // { dg-additional-options "-Werror -fmax-errors=1" }
4 [[deprecated]] void doNothing(){}
6 int
7 main()
9   doNothing(); // { dg-error "is deprecated" }
12 // { dg-message "all warnings being treated as errors" "" { target *-*-* } 0 }
13 // { dg-bogus "compilation terminated" "" { target *-*-* } 0 }