summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.wendy/gnu27.c
diff options
context:
space:
mode:
authorYamaArashi <shadow962@live.com>2016-01-06 01:47:28 -0800
committerYamaArashi <shadow962@live.com>2016-01-06 01:47:28 -0800
commitbe8b04496302184c6e8f04d6179f9c3afc50aeb6 (patch)
tree726e2468c0c07add773c0dbd86ab6386844259ae /gcc/testsuite/gcc.wendy/gnu27.c
initial commit
Diffstat (limited to 'gcc/testsuite/gcc.wendy/gnu27.c')
-rwxr-xr-xgcc/testsuite/gcc.wendy/gnu27.c28
1 files changed, 28 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.wendy/gnu27.c b/gcc/testsuite/gcc.wendy/gnu27.c
new file mode 100755
index 0000000..f197737
--- /dev/null
+++ b/gcc/testsuite/gcc.wendy/gnu27.c
@@ -0,0 +1,28 @@
+/* DEJAGNU_OUTPUT:"Test failed (if it compiles at all)" */
+
+/*
+ * This program should generate at least a warning; preferably an error.
+ */
+int *
+main()
+{
+ int local = 1;
+
+ printf("Test failed (if it compiles at all)\n");
+
+ return &local;
+}
+
+/*
+ * RMS comments:
+ *
+Date: Sun, 18 Dec 88 14:39:18 EST
+From: rms@wheaties.ai.mit.edu (Richard Stallman)
+To: gnu@toad.com
+Subject: gcc-1.31 sparc test suite results
+
+I do not anticipate that gnu27.c will ever produce a warning
+message. I can see kludgy ways to produce them in simple cases,
+but more complicated circumlocutions would avoid them. In general
+the problem is uncomputable.
+ */