Debian Codegraph @

gcc/testsuite/gcc.dg/Wfatal-bad-attr-pr119366.c

raw
1 /* Verify that we don't crash if we bail out with a fatal error
2 while an on-stack attribute_urlifier is active (PR c/119366). */
3 /* { dg-options "-Wfatal-errors -Werror=attributes" } */
4 void foo() __attribute__((this_does_not_exist)); /* { dg-error "'this_does_not_exist' attribute directive ignored" } */
5
6 /* { dg-message "some warnings being treated as errors" "treated as errors" {target "*-*-*"} 0 } */
7 /* { dg-message "terminated due to -Wfatal-errors" "terminated" { target *-*-* } 0 } */
8