Commit d6892b3d by Kai Tietz Committed by Kai Tietz

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
parent 78a1d149
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
......
// { 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()
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment