summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/cpp/warn-comments-2.c
blob: 492b99cb956eff092c78565a1bd84f64f13a23ea (plain)
1
2
3
4
5
6
7
// { dg-do preprocess }
// { dg-options "-std=gnu99 -fdiagnostics-show-option -Werror=comments" }
/* { 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 }