diff options
author | Steve Ellcey <sje@cup.hp.com> | 2009-02-10 16:34:30 +0000 |
---|---|---|
committer | Steve Ellcey <sje@gcc.gnu.org> | 2009-02-10 16:34:30 +0000 |
commit | 914ff5654a2185d2aec405b9e442b6b8880e27e4 (patch) | |
tree | df40f201552af7bb3ee8f62d1b7eb669ca3ea276 /gcc/testsuite/gcc.dg/pr39084.c | |
parent | a03813c899614172d4c20b021868949cb7354415 (diff) | |
download | gcc-914ff5654a2185d2aec405b9e442b6b8880e27e4.zip gcc-914ff5654a2185d2aec405b9e442b6b8880e27e4.tar.gz gcc-914ff5654a2185d2aec405b9e442b6b8880e27e4.tar.bz2 |
re PR c/39084 (ice on struct redefinition)
PR c/39084
gcc.dg/pr39084.c: New test.
From-SVN: r144068
Diffstat (limited to 'gcc/testsuite/gcc.dg/pr39084.c')
-rw-r--r-- | gcc/testsuite/gcc.dg/pr39084.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/pr39084.c b/gcc/testsuite/gcc.dg/pr39084.c new file mode 100644 index 0000000..6432841 --- /dev/null +++ b/gcc/testsuite/gcc.dg/pr39084.c @@ -0,0 +1,11 @@ +/* { dg-do compile } */ +/* { dg-options "-O2" } */ + +struct color { int i; }; +static const struct color col; +struct color * f(void) +{ + return (struct color *) &col; +} + +struct color { int j; }; /* { dg-error "redefinition of" } */ |