aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.misc-tests/dg-12.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/gcc.misc-tests/dg-12.c')
-rw-r--r--gcc/testsuite/gcc.misc-tests/dg-12.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.misc-tests/dg-12.c b/gcc/testsuite/gcc.misc-tests/dg-12.c
new file mode 100644
index 00000000000..ad0870d88cc
--- /dev/null
+++ b/gcc/testsuite/gcc.misc-tests/dg-12.c
@@ -0,0 +1,9 @@
+/* Test the tester. */
+/* { dg-prms-id 42 } */
+/* { dg-do run { target foo-bar-eh } } */
+/* The \n is left out of the pattern because tcl's exec will remove it. */
+/* { dg-output {^Hello world[.]$} } */
+
+#include <stdio.h>
+
+main () { printf ("Hello world.\n"); return 0; }