}
}
-namespace ms_using_declaration_bug {\r
-\r
-class A {\r
-public: \r
- int f(); \r
-};\r
-\r
-class B : public A {\r
-private: \r
- using A::f;\r
-};\r
-\r
-class C : public B { \r
-private: \r
- using B::f; // expected-warning {{using declaration referring to inaccessible member 'ms_using_declaration_bug::B::f' (which refers to accessible member 'ms_using_declaration_bug::A::f') is a Microsoft compatibility extension}}\r
-};\r
-\r
-}\r
-\r
-\r
-namespace MissingTypename {\r
-\r
-template<class T> class A {\r
-public:\r
- typedef int TYPE;\r
-};\r
-\r
-template<class T> class B {\r
-public:\r
- typedef int TYPE;\r
-};\r
-\r
-\r
-template<class T, class U>\r
-class C : private A<T>, public B<U> {\r
-public:\r
- typedef A<T> Base1;\r
- typedef B<U> Base2;\r
- typedef A<U> Base3;\r
-\r
- A<T>::TYPE a1; // expected-warning {{missing 'typename' prior to dependent type name}}\r
- Base1::TYPE a2; // expected-warning {{missing 'typename' prior to dependent type name}}\r
-\r
- B<U>::TYPE a3; // expected-warning {{missing 'typename' prior to dependent type name}}\r
- Base2::TYPE a4; // expected-warning {{missing 'typename' prior to dependent type name}}\r
-\r
- A<U>::TYPE a5; // expected-error {{missing 'typename' prior to dependent type name}}\r
- Base3::TYPE a6; // expected-error {{missing 'typename' prior to dependent type name}}\r
- };\r
-\r
-class D {\r
-public:\r
- typedef int Type;\r
-};\r
-\r
-template <class T>\r
-void function_missing_typename(const T::Type param)// expected-warning {{missing 'typename' prior to dependent type name}}\r
-{\r
- const T::Type var = 2; // expected-warning {{missing 'typename' prior to dependent type name}}\r
-}\r
-\r
-template void function_missing_typename<D>(const D::Type param);\r
-\r
-}\r
-\r
+namespace ms_using_declaration_bug {
+
+class A {
+public:
+ int f();
+};
+
+class B : public A {
+private:
+ using A::f;
+};
+
+class C : public B {
+private:
+ using B::f; // expected-warning {{using declaration referring to inaccessible member 'ms_using_declaration_bug::B::f' (which refers to accessible member 'ms_using_declaration_bug::A::f') is a Microsoft compatibility extension}}
+};
+
+}
+
+
+namespace MissingTypename {
+
+template<class T> class A {
+public:
+ typedef int TYPE;
+};
+
+template<class T> class B {
+public:
+ typedef int TYPE;
+};
+
+
+template<class T, class U>
+class C : private A<T>, public B<U> {
+public:
+ typedef A<T> Base1;
+ typedef B<U> Base2;
+ typedef A<U> Base3;
+
+ A<T>::TYPE a1; // expected-warning {{missing 'typename' prior to dependent type name}}
+ Base1::TYPE a2; // expected-warning {{missing 'typename' prior to dependent type name}}
+
+ B<U>::TYPE a3; // expected-warning {{missing 'typename' prior to dependent type name}}
+ Base2::TYPE a4; // expected-warning {{missing 'typename' prior to dependent type name}}
+
+ A<U>::TYPE a5; // expected-error {{missing 'typename' prior to dependent type name}}
+ Base3::TYPE a6; // expected-error {{missing 'typename' prior to dependent type name}}
+ };
+
+class D {
+public:
+ typedef int Type;
+};
+
+template <class T>
+void function_missing_typename(const T::Type param)// expected-warning {{missing 'typename' prior to dependent type name}}
+{
+ const T::Type var = 2; // expected-warning {{missing 'typename' prior to dependent type name}}
+}
+
+template void function_missing_typename<D>(const D::Type param);
+
+}
+
enum ENUM2 {
ENUM2_a = (enum ENUM2) 4,
ENUM2_b = 0x9FFFFFFF, // expected-warning {{enumerator value is not representable in the underlying type 'int'}}
ENUM2_c = 0x100000000 // expected-warning {{enumerator value is not representable in the underlying type 'int'}}
};
-\r
-\r
+
+