Commit 7c06b222 by Aaron W. LaFramboise Committed by Aaron W. LaFramboise

dllimport1.C: Move dg-warnings.

	* g++.dg/ext/dllimport1.C: Move dg-warnings.
	* g++.dg/ext/dllimport2.C: Same.
	* g++.dg/ext/dllimport8.C: Same.

From-SVN: r89428
parent 52f446a7
2004-10-22 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
* g++.dg/ext/dllimport1.C: Move dg-warnings.
* g++.dg/ext/dllimport2.C: Same.
* g++.dg/ext/dllimport8.C: Same.
2004-10-21 Mark Mitchell <mark@codesourcery.com> 2004-10-21 Mark Mitchell <mark@codesourcery.com>
PR c++/10841 PR c++/10841
......
...@@ -5,14 +5,14 @@ ...@@ -5,14 +5,14 @@
class __attribute__((dllimport)) Foo class __attribute__((dllimport)) Foo
{ {
public: public:
virtual void dummy_foo_func(void) virtual void dummy_foo_func(void) // { dg-warning "inline function" }
{} // { dg-warning "inline function" } {}
void Foo::dummy_foo_fun2(); void Foo::dummy_foo_fun2();
virtual ~Foo(); // avoid warning virtual ~Foo(); // avoid warning
}; };
void Foo::dummy_foo_fun2() void Foo::dummy_foo_fun2() // { dg-warning "defined" }
{ // { dg-warning "defined" } {
} }
class Bar : public Foo class Bar : public Foo
......
...@@ -15,8 +15,8 @@ void Foo(void) ...@@ -15,8 +15,8 @@ void Foo(void)
Boz++; Boz++;
} }
void Bar(void) void Bar(void) // { dg-warning "defined" }
{ // { dg-warning "defined" } {
} }
void Baz(void); // { dg-warning "redeclared" } void Baz(void); // { dg-warning "redeclared" }
......
...@@ -12,12 +12,12 @@ struct __attribute__((dllimport)) Foo ...@@ -12,12 +12,12 @@ struct __attribute__((dllimport)) Foo
static void static_func2(); static void static_func2();
}; };
void Foo::static_func1() void Foo::static_func1() // { dg-warning "defined" }
{ // { dg-warning "defined" } {
} }
inline void Foo::static_func2() inline void Foo::static_func2() // { dg-warning "inline function" }
{ // { dg-warning "inline function" } {
} }
void testfoo() void testfoo()
......
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