2 // { dg-do compile { target c++14 } }
3 // { dg-additional-options "-Werror -fmax-errors=1" }
4 [[deprecated]] void doNothing(){}
9 doNothing(); // { dg-error "is deprecated" }
12 // { dg-message "all warnings being treated as errors" "" { target *-*-* } 0 }
13 // { dg-bogus "compilation terminated" "" { target *-*-* } 0 }