zerolen-1.c: Rename from 20001115-1.c.

* gcc.c-torture/execute/zerolen-1.c: Rename from 20001115-1.c.
        * gcc.c-torture/execute/zerolen-2.c: New.

From-SVN: r37548
This commit is contained in:
Richard Henderson 2000-11-18 14:35:36 -08:00 committed by Richard Henderson
parent e601f9e9d8
commit ce7d4fc8dd
3 changed files with 23 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2000-11-18 Richard Henderson <rth@redhat.com>
* gcc.c-torture/execute/zerolen-1.c: Rename from 20001115-1.c.
* gcc.c-torture/execute/zerolen-2.c: New.
2000-11-18 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
* gcc.c-torture/execute/20001115-1.c: Don't access nonexistant

View File

@ -0,0 +1,18 @@
extern void abort(void);
typedef int word __attribute__((mode(word)));
struct foo
{
word x;
word y[0];
};
int main()
{
if (sizeof(word) != sizeof(struct foo))
abort();
if (__alignof__(word) != __alignof__(struct foo))
abort();
return 0;
}