summaryrefslogtreecommitdiff
path: root/gcc_arm/testsuite/gcc.misc-tests/dg-5.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc_arm/testsuite/gcc.misc-tests/dg-5.c')
-rwxr-xr-xgcc_arm/testsuite/gcc.misc-tests/dg-5.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/gcc_arm/testsuite/gcc.misc-tests/dg-5.c b/gcc_arm/testsuite/gcc.misc-tests/dg-5.c
new file mode 100755
index 0000000..33a5b4e
--- /dev/null
+++ b/gcc_arm/testsuite/gcc.misc-tests/dg-5.c
@@ -0,0 +1,9 @@
+/* Test the tester. */
+/* { dg-prms-id 42 } */
+/* { dg-do run } */
+/* 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; }