From: Kai Tietz Date: Mon, 8 Nov 2010 10:49:38 +0000 (+0000) Subject: re PR target/28627 ([cygwin/mingw32] Missing dllimport diagnostic) X-Git-Tag: releases/gcc-4.6.0~2835 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d6892b3d1c047765b8070800150daea95306ab32;p=thirdparty%2Fgcc.git re PR target/28627 ([cygwin/mingw32] Missing dllimport diagnostic) 2010-11-08 Kai Tietz PR target/28627 * g++.dg/ext/dllimport7.C: Adjust second error check and allow test for x86_64 mingw, too. From-SVN: r166431 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 395d9879029b..3cbb7a9c7c56 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2010-11-08 Kai Tietz + + 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 PR fortran/46344 diff --git a/gcc/testsuite/g++.dg/ext/dllimport7.C b/gcc/testsuite/g++.dg/ext/dllimport7.C index 8bf384889b51..0a79b3da33c8 100644 --- a/gcc/testsuite/g++.dg/ext/dllimport7.C +++ b/gcc/testsuite/g++.dg/ext/dllimport7.C @@ -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() {