diff options
Diffstat (limited to 'gcc-4.8/gcc/testsuite/gcc.dg/cpp/warn-comments-2.c')
-rw-r--r-- | gcc-4.8/gcc/testsuite/gcc.dg/cpp/warn-comments-2.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gcc-4.8/gcc/testsuite/gcc.dg/cpp/warn-comments-2.c b/gcc-4.8/gcc/testsuite/gcc.dg/cpp/warn-comments-2.c new file mode 100644 index 000000000..492b99cb9 --- /dev/null +++ b/gcc-4.8/gcc/testsuite/gcc.dg/cpp/warn-comments-2.c @@ -0,0 +1,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 } |