aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.test-framework/dg-outexistsnot-exp-P.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc-4.9/gcc/testsuite/gcc.test-framework/dg-outexistsnot-exp-P.c')
-rw-r--r--gcc-4.9/gcc/testsuite/gcc.test-framework/dg-outexistsnot-exp-P.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/gcc-4.9/gcc/testsuite/gcc.test-framework/dg-outexistsnot-exp-P.c b/gcc-4.9/gcc/testsuite/gcc.test-framework/dg-outexistsnot-exp-P.c
new file mode 100644
index 000000000..00260062f
--- /dev/null
+++ b/gcc-4.9/gcc/testsuite/gcc.test-framework/dg-outexistsnot-exp-P.c
@@ -0,0 +1,7 @@
+/* { dg-do compile } */
+/* { dg-options "-Wunused-value -Werror" } */
+
+int main (void) { 0; } /* { dg-error "no effect" } */
+
+/* { dg-message "warnings being treated as errors" "" { target *-*-* } 0 } */
+/* { dg-final { output-exists-not { target *-*-* } } } */