aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.test-framework/dg-do-compile-exp-P.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc-4.9/gcc/testsuite/gcc.test-framework/dg-do-compile-exp-P.c')
-rw-r--r--gcc-4.9/gcc/testsuite/gcc.test-framework/dg-do-compile-exp-P.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/gcc-4.9/gcc/testsuite/gcc.test-framework/dg-do-compile-exp-P.c b/gcc-4.9/gcc/testsuite/gcc.test-framework/dg-do-compile-exp-P.c
new file mode 100644
index 000000000..93857465a
--- /dev/null
+++ b/gcc-4.9/gcc/testsuite/gcc.test-framework/dg-do-compile-exp-P.c
@@ -0,0 +1,14 @@
+/* Test the tester; previously gcc.misc-tests/dg-1.c. */
+/* { dg-prms-id 42 } */
+/* { dg-do compile } */
+
+main () { return 0; }
+
+/* { dg-final { if ![file exists dg-do-compile-exp-P.s] { fail "dg-do-compile-exp-P.c (compile)"; return; } } } */
+
+/* { dg-final { set tmp [grep dg-do-compile-exp-P.s main line] } } */
+/* { dg-final { if ![string match "" $tmp] \{ } } */
+/* { dg-final { pass "dg-do-compile-exp-P.c (main function present)" } } */
+/* { dg-final { \} else \{ } } */
+/* { dg-final { fail "dg-do-compile-exp-P.c (main function not present)" } } */
+/* { dg-final { \} } } */