mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-02-05 07:39:39 +08:00
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
This commit is contained in:
parent
32adf8e626
commit
753e6cf1b6
@ -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.
|
||||
|
14
gcc/testsuite/g++.old-deja/g++.other/align.C
Normal file
14
gcc/testsuite/g++.old-deja/g++.other/align.C
Normal file
@ -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));
|
||||
}
|
17
gcc/testsuite/gcc.c-torture/compile/20000502-1.c
Normal file
17
gcc/testsuite/gcc.c-torture/compile/20000502-1.c
Normal file
@ -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();
|
||||
}
|
Loading…
Reference in New Issue
Block a user