mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-04-01 20:21:12 +08:00
re PR c++/40145 (structure inside a static function is exported, producing warning)
2011-09-28 Paolo Carlini <paolo.carlini@oracle.com> PR c++/40145 * g++.dg/ext/visibility/warn5.C: New. From-SVN: r179323
This commit is contained in:
parent
6f94398e39
commit
48ec150246
@ -1,3 +1,8 @@
|
||||
2011-09-28 Paolo Carlini <paolo.carlini@oracle.com>
|
||||
|
||||
PR c++/40145
|
||||
* g++.dg/ext/visibility/warn5.C: New.
|
||||
|
||||
2011-09-28 Paolo Carlini <paolo.carlini@oracle.com>
|
||||
|
||||
PR c++/45278
|
||||
|
11
gcc/testsuite/g++.dg/ext/visibility/warn5.C
Normal file
11
gcc/testsuite/g++.dg/ext/visibility/warn5.C
Normal file
@ -0,0 +1,11 @@
|
||||
// PR c++/40145
|
||||
// { dg-do compile }
|
||||
// { dg-require-visibility "" }
|
||||
// { dg-options "-fvisibility=hidden" }
|
||||
|
||||
struct EditorInternalCommand { };
|
||||
|
||||
static void createCommandMap()
|
||||
{
|
||||
struct CommandEntry { EditorInternalCommand command; };
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user