OSDN Git Service

2005-08-01 Andrew Pinski <pinskia@physics.uc.edu>
authorpinskia <pinskia@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 1 Aug 2005 16:29:17 +0000 (16:29 +0000)
committerpinskia <pinskia@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 1 Aug 2005 16:29:17 +0000 (16:29 +0000)
        * gcc.c-torture/compile/20050801-1.c: New test.
        * gcc.c-torture/compile/20050801-2.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@102634 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/compile/20050801-1.c [new file with mode: 0644]
gcc/testsuite/gcc.c-torture/compile/20050801-2.c [new file with mode: 0644]

index a4dc061..5ca88a2 100644 (file)
@@ -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 (file)
index 0000000..7e32166
--- /dev/null
@@ -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 (file)
index 0000000..45bd2a0
--- /dev/null
@@ -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);
+}