aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.test-framework/dg-warning-exp-P.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc-4.9/gcc/testsuite/gcc.test-framework/dg-warning-exp-P.c')
-rw-r--r--gcc-4.9/gcc/testsuite/gcc.test-framework/dg-warning-exp-P.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/gcc-4.9/gcc/testsuite/gcc.test-framework/dg-warning-exp-P.c b/gcc-4.9/gcc/testsuite/gcc.test-framework/dg-warning-exp-P.c
new file mode 100644
index 000000000..0350e5216
--- /dev/null
+++ b/gcc-4.9/gcc/testsuite/gcc.test-framework/dg-warning-exp-P.c
@@ -0,0 +1,9 @@
+/* Test the tester; previously part of gcc.misc-tests/dg-9.c. */
+/* { dg-prms-id 42 } */
+/* { dg-options "-Wall" } */
+
+f () { /* { dg-warning "return type" "warning test" } */
+} /* { dg-warning "control reaches end" "warning test" } */
+
+main (int argc, char *argv[]) { /* { dg-warning "return type" "warning test" } */
+} /* { dg-warning "control reaches end" "warning test" } */