aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Pinski <pinskia@physics.uc.edu>2005-08-01 16:29:17 +0000
committerAndrew Pinski <pinskia@gcc.gnu.org>2005-08-01 09:29:17 -0700
commitf8aa1785b6ec4cbe2bc10607909bb4b9e18de836 (patch)
treed8ac7dfd35c7106b6b82eeba4e2b07f8a2e10a71
parent68a976f2c4ff78caabdfeddfe04ca5678f2e6551 (diff)
downloadgcc-f8aa1785b6ec4cbe2bc10607909bb4b9e18de836.zip
gcc-f8aa1785b6ec4cbe2bc10607909bb4b9e18de836.tar.gz
gcc-f8aa1785b6ec4cbe2bc10607909bb4b9e18de836.tar.bz2
20050801-1.c: New test.
2005-08-01 Andrew Pinski <pinskia@physics.uc.edu> * gcc.c-torture/compile/20050801-1.c: New test. * gcc.c-torture/compile/20050801-2.c: New test. From-SVN: r102634
-rw-r--r--gcc/testsuite/ChangeLog5
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20050801-1.c8
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20050801-2.c12
3 files changed, 25 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index a4dc061..5ca88a2 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2005-08-01 Andrew Pinski <pinskia@physics.uc.edu>
+
+ * gcc.c-torture/compile/20050801-1.c: New test.
+ * gcc.c-torture/compile/20050801-2.c: New test.
+
2005-08-01 Jan Hubicka <jh@suse.cz>
* val-prof-5.c: New test.
diff --git a/gcc/testsuite/gcc.c-torture/compile/20050801-1.c b/gcc/testsuite/gcc.c-torture/compile/20050801-1.c
new file mode 100644
index 0000000..7e32166
--- /dev/null
+++ b/gcc/testsuite/gcc.c-torture/compile/20050801-1.c
@@ -0,0 +1,8 @@
+__inline void libc_name_p (void)
+{
+ enum { A = 1 };
+}
+void nothrow_libfn_p (void)
+{
+ libc_name_p ();
+}
diff --git a/gcc/testsuite/gcc.c-torture/compile/20050801-2.c b/gcc/testsuite/gcc.c-torture/compile/20050801-2.c
new file mode 100644
index 0000000..45bd2a0
--- /dev/null
+++ b/gcc/testsuite/gcc.c-torture/compile/20050801-2.c
@@ -0,0 +1,12 @@
+__inline int f(int i)
+{
+ struct {
+ int t[i];
+ } t;
+ return sizeof(t.t[i--]);
+}
+
+int g(int i)
+{
+ return f(i);
+}