diff options
author | Andrew Pinski <pinskia@physics.uc.edu> | 2005-08-01 16:29:17 +0000 |
---|---|---|
committer | Andrew Pinski <pinskia@gcc.gnu.org> | 2005-08-01 09:29:17 -0700 |
commit | f8aa1785b6ec4cbe2bc10607909bb4b9e18de836 (patch) | |
tree | d8ac7dfd35c7106b6b82eeba4e2b07f8a2e10a71 | |
parent | 68a976f2c4ff78caabdfeddfe04ca5678f2e6551 (diff) | |
download | gcc-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/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/testsuite/gcc.c-torture/compile/20050801-1.c | 8 | ||||
-rw-r--r-- | gcc/testsuite/gcc.c-torture/compile/20050801-2.c | 12 |
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); +} |