summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/unsorted
diff options
context:
space:
mode:
authorkazu <kazu@138bc75d-0d04-0410-961f-82ee72b054a4>2003-12-22 03:32:35 +0000
committerkazu <kazu@138bc75d-0d04-0410-961f-82ee72b054a4>2003-12-22 03:32:35 +0000
commit5a9489bf5bd704b40fbfbf3a5f545f5706c1415d (patch)
tree1df15853e5faefa4a93b0b93cfb5bcf7c0f1ec6c /gcc/testsuite/gcc.c-torture/unsorted
parentc28d531afb4e8b98877e7ad8c12307d138534a84 (diff)
downloadgcc-5a9489bf5bd704b40fbfbf3a5f545f5706c1415d.tar.gz
* gcc.c-torture/compile/20020910-1.c: Disable if __INT_MAX is
too small. * gcc.c-torture/compile/930217-1.c: Likewise. * gcc.c-torture/compile/930513-1.c: Likewise. * gcc.c-torture/execute/920908-2.c: Likewise. * gcc.c-torture/execute/921204-1.c: Likewise. * gcc.c-torture/execute/930621-1.c: Likewise. * gcc.c-torture/execute/930630-1.c: Likewise. * gcc.c-torture/execute/931031-1.c: Likewise. * gcc.c-torture/execute/980602-2.c: Likewise. * gcc.c-torture/execute/comp-goto-1.c: Likewise. * gcc.c-torture/execute/compndlit-1.c: Likewise. * gcc.c-torture/execute/extzvsi.c: Likewise. * gcc.c-torture/unsorted/ext.c: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@74923 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/gcc.c-torture/unsorted')
-rw-r--r--gcc/testsuite/gcc.c-torture/unsorted/ext.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.c-torture/unsorted/ext.c b/gcc/testsuite/gcc.c-torture/unsorted/ext.c
index 8fa8cd73363..9e8604ef2b2 100644
--- a/gcc/testsuite/gcc.c-torture/unsorted/ext.c
+++ b/gcc/testsuite/gcc.c-torture/unsorted/ext.c
@@ -1,3 +1,12 @@
+/* The bit-field below would have a problem if __INT_MAX__ is too
+ small. */
+#if __INT_MAX__ < 2147483647
+int
+main (void)
+{
+ exit (0);
+}
+#else
struct foo
{
unsigned b31 : 1;
@@ -11,3 +20,4 @@ foo(a)
{
return a.b30;
}
+#endif