summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.wendy/gnu31.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/gnu31.c
initial commit
Diffstat (limited to 'gcc/testsuite/gcc.wendy/gnu31.c')
-rwxr-xr-xgcc/testsuite/gcc.wendy/gnu31.c26
1 files changed, 26 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.wendy/gnu31.c b/gcc/testsuite/gcc.wendy/gnu31.c
new file mode 100755
index 0000000..c6ba4b5
--- /dev/null
+++ b/gcc/testsuite/gcc.wendy/gnu31.c
@@ -0,0 +1,26 @@
+/*
+Message-Id: <9010022328.AA01576@shark2>
+To: cygint!bugs
+Subject: bug in gcc front end
+Date: Tue, 02 Oct 90 16:28:14 PDT
+From: @hermes.intel.com:kevins@shark2
+
+The following source program causes gcc to emit these errors:
+t1.c:3: bit-field `a' width not an integer constant
+t1.c:4: bit-field `b' width not an integer constant
+**** test ****/
+static struct b { /* 3.4 (cont.) */
+ int i;
+ unsigned int a : (1 + 3 * 2) / 7;
+ unsigned int b : (1 + 3 * 2) / 7;
+ } b;
+/**** end test ****
+This program is legal in that ANSI (well Dec 7, 1988) 3.5.2.1 grammar
+allows constant expressions here.
+*/
+
+#include <stdio.h>
+main()
+{
+ printf("Test passed.\n");
+}