diff options
author | Jakub Jelinek <jakub@redhat.com> | 2000-05-02 17:17:08 +0200 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2000-05-02 17:17:08 +0200 |
commit | 753e6cf1b64ccc2e8f7946d4a7a010f82ff99c31 (patch) | |
tree | b6634ff0029575bc74c5b32add064b1a137dcd03 /gcc | |
parent | 32adf8e62665b2aa43759a52a6f4294d6732df67 (diff) | |
download | gcc-753e6cf1b64ccc2e8f7946d4a7a010f82ff99c31.zip gcc-753e6cf1b64ccc2e8f7946d4a7a010f82ff99c31.tar.gz gcc-753e6cf1b64ccc2e8f7946d4a7a010f82ff99c31.tar.bz2 |
20000502-1.c: New test.
* gcc.c-torture/compile/20000502-1.c: New test.
* g++.old-deja/g++.other/align.C: New test.
From-SVN: r33610
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.other/align.C | 14 | ||||
-rw-r--r-- | gcc/testsuite/gcc.c-torture/compile/20000502-1.c | 17 |
3 files changed, 36 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index edeb5a3..cbe09a0 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2000-05-02 Jakub Jelinek <jakub@redhat.com> + + * gcc.c-torture/compile/20000502-1.c: New test. + * g++.old-deja/g++.other/align.C: New test. + Sun Apr 23 14:41:33 2000 Jeffrey A Law (law@cygnus.com) * gcc.c-torture/execute/20000422-1.c: New test. diff --git a/gcc/testsuite/g++.old-deja/g++.other/align.C b/gcc/testsuite/g++.old-deja/g++.other/align.C new file mode 100644 index 0000000..4ac1d54 --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.other/align.C @@ -0,0 +1,14 @@ +// Build don't link: + +class bar { +public: + bar() { rw = 0; } + static const bar baz; +private: + unsigned char rw; +}; +char buf[4096]; +void foo(char *uc) +{ + memcpy(buf,&bar::baz,sizeof(bar)); +} diff --git a/gcc/testsuite/gcc.c-torture/compile/20000502-1.c b/gcc/testsuite/gcc.c-torture/compile/20000502-1.c new file mode 100644 index 0000000..fcf7899 --- /dev/null +++ b/gcc/testsuite/gcc.c-torture/compile/20000502-1.c @@ -0,0 +1,17 @@ +static int minimum(int a, int b) +{ + if(a < b) + return a; + else + return b; +} +static int a, b; +static inline int foo(void) +{ + a = minimum (a, b); + return 0; +} +static int bar(void) +{ + return foo(); +} |