summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/cpp/warn-comments-3.c
blob: 639fa10158ca973bef6645787204b52578fd15a6 (plain)
1
2
3
4
5
6
7
// { dg-do preprocess }
// { dg-options "-std=gnu99 -fdiagnostics-show-option -Werror=comment" }
/* { dg-message "some warnings being treated as errors" "" {target "*-*-*"} 0 } */
/* /* */  // { dg-error "\"\.\*\" within comment .-Werror=comment." }

// \
          // { dg-error "multi-line comment .-Werror=comment." "multi-line" { target *-*-* } 6 }