Fix broken MinGW build of gcc.c
[official-gcc.git] / gcc / testsuite / g++.dg / diagnostic / disable.C
blob7d86e073b26c9699e2ea8b55504d3c0c59b4e061
1 // { dg-options "-Wtemplates -Wmultiple-inheritance -Wvirtual-inheritance -Wnamespaces" }
3 #include <iostream>
4 #include <algorithm>
6 namespace foo { } // { dg-warning "namespace" }
8 template <typename X> X Foo (); // { dg-warning "template" }
10 struct B1 {};
11 struct B2 {};
12 struct V {};
14 struct D :  B1, B2 {}; //  { dg-warning "multiple" }
16 struct E : virtual V {};  // { dg-warning "virtual" }
18 struct F1 : E {};
20 struct F2 : D {};
22 void Baz (int a, int b)
24   std::swap (a, b);