blob: d2ba509534ff5f00cbdcc46abb1ab4ae41a20e55 [file] [log] [blame]
// PR c++/67960
// { dg-do compile }
// { dg-additional-options "-Werror -fmax-errors=1" }
__attribute__((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 }