a test for access declarations and remove a (broken) test for removal
of default arguments.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@95032
91177308-0d34-0410-b5e6-
96231b3b80d8
-// RUN: %clang_cc1 -pedantic -fixit %s -o - | %clang_cc1 -fsyntax-only -pedantic -Werror -x c++ -
+// RUN: %clang_cc1 -pedantic -Wall -fixit %s -o - | %clang_cc1 -fsyntax-only -pedantic -Wall -Werror -x c++ -
/* This is a test of the various code modification hints that are
provided as part of warning or extension diagnostics. All of the
template<> class CT<1> { }; // expected-error{{tag type}}
-// PR5444
-namespace PR5444 {
- void foo(int x, int y = 0);
- void foo(int x, int y = 0) { }
+// Access declarations
+class A {
+protected:
+ int foo();
+};
- void foo(int = 0);
- void foo(int = 0) { }
-}
+class B : public A {
+ A::foo; // expected-warning{{access declarations are deprecated}}
+};