blob: d7b1a2d0811308c256f950c2add61402631741a5 [file] [log] [blame]
// 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 }