re PR target/28627 ([cygwin/mingw32] Missing dllimport diagnostic)

2010-11-08  Kai Tietz  <kai.tietz@onevision.com>

        PR target/28627
        * g++.dg/ext/dllimport7.C: Adjust second error check and
        allow test for x86_64 mingw, too.

From-SVN: r166431
This commit is contained in:
Kai Tietz 2010-11-08 10:49:38 +00:00 committed by Kai Tietz
parent 78a1d1490c
commit d6892b3d1c
2 changed files with 8 additions and 5 deletions

View file

@ -1,3 +1,9 @@
2010-11-08 Kai Tietz <kai.tietz@onevision.com>
PR target/28627
* g++.dg/ext/dllimport7.C: Adjust second error check and
allow test for x86_64 mingw, too.
2010-11-08 Janus Weil <janus@gcc.gnu.org>
PR fortran/46344

View file

@ -1,4 +1,4 @@
// { dg-do compile { target i?86-*-cygwin* i?86-*-mingw*} }
// { dg-do compile { target i?86-*-cygwin* i?86-*-mingw* x86_64-*-mingw* } }
// Report errors on definition of dllimport'd static data member .
@ -19,12 +19,9 @@ class __declspec(dllimport) Bar
};
const int Bar::three = 3; // { dg-warning "redeclared without dllimport" }
// { dg-error "definition of static data" "C++ specific error" { target i?86-*-cygwin* i?86-*-mingw* } 21 }
// { dg-error "definition of static data" "C++ specific error" { target i?86-*-cygwin* i?86-*-mingw* x86_64-*-mingw* } 21 }
const Baz Bar::null_baz; // { dg-warning "redeclared without dllimport" }
// { dg-error "definition of static data" "C++ specific error" { target i?86-*-cygwin* i?86-*-mingw* } 24 }
int foo()
{