summaryrefslogtreecommitdiffstats
path: root/gcc
diff options
context:
space:
mode:
authorechristo <echristo@138bc75d-0d04-0410-961f-82ee72b054a4>2000-07-24 20:49:51 +0000
committerechristo <echristo@138bc75d-0d04-0410-961f-82ee72b054a4>2000-07-24 20:49:51 +0000
commitff4a0ae8814f03bf1b84da375d74e703b2e390de (patch)
treeab8b03e07555a676c0e88457c7d290855e0c4e93 /gcc
parent14f8fca0ce9044d04803458737bc66911c24008f (diff)
downloadppe42-gcc-ff4a0ae8814f03bf1b84da375d74e703b2e390de.tar.gz
ppe42-gcc-ff4a0ae8814f03bf1b84da375d74e703b2e390de.zip
2000-07-18 Eric Christopher <echristo@redhat.com>
* gcc.c-torture/compile/20000718-1.c: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@35236 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/ChangeLog7
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20000718.c14
2 files changed, 19 insertions, 2 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 9fd9423f078..b655032aea9 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -27,7 +27,7 @@
and "Internal error".
* gcc.dg/cpp/20000625-2.c, gcc.dg/cpp/macsyntx.c: Update error
- regexps.
+ regexps.
* gcc.dg/cpp/paste6.c: New test.
2000-07-19 Zack Weinberg <zack@wolery.cumb.org>
@@ -37,6 +37,10 @@
* gcc.dg/cpp/directiv.c, gcc.dg/cpp/macsyntx.c,
gcc.dg/cpp/undef1.c: Tweak error regexps.
+2000-07-18 Eric Christopher <echristo@redhat.com>
+
+ * gcc.c-torture/compile/20000718-1.c: New test.
+
2000-07-18 Zack Weinberg <zack@wolery.cumb.org>
* cpplex.c (_cpp_push_token): If the token being pushed back
@@ -5365,4 +5369,3 @@ Mon Mar 22 14:28:46 1993 Ian Lance Taylor (ian@cygnus.com)
correspond to c-torture 1.11.
* New file.
-
diff --git a/gcc/testsuite/gcc.c-torture/compile/20000718.c b/gcc/testsuite/gcc.c-torture/compile/20000718.c
new file mode 100644
index 00000000000..acabaf16011
--- /dev/null
+++ b/gcc/testsuite/gcc.c-torture/compile/20000718.c
@@ -0,0 +1,14 @@
+extern double foo(double, double);
+extern void bar(float*, int*);
+
+void
+baz(int* arg)
+{
+ float tmp = (float)foo(2.0,1.0);
+ unsigned i;
+ short junk[64];
+
+ for (i=0; i<10; i++, arg++) {
+ bar(&tmp, arg);
+ }
+}
OpenPOWER on IntegriCloud