blob: 7d86e073b26c9699e2ea8b55504d3c0c59b4e061 [file] [log] [blame]
// { dg-options "-Wtemplates -Wmultiple-inheritance -Wvirtual-inheritance -Wnamespaces" }
#include <iostream>
#include <algorithm>
namespace foo { } // { dg-warning "namespace" }
template <typename X> X Foo (); // { dg-warning "template" }
struct B1 {};
struct B2 {};
struct V {};
struct D : B1, B2 {}; // { dg-warning "multiple" }
struct E : virtual V {}; // { dg-warning "virtual" }
struct F1 : E {};
struct F2 : D {};
void Baz (int a, int b)
{
std::swap (a, b);
}