]> granicus.if.org Git - clang/commitdiff
Make this fix-it test case actually fail when there is a problem; add
authorDouglas Gregor <dgregor@apple.com>
Mon, 1 Feb 2010 23:46:27 +0000 (23:46 +0000)
committerDouglas Gregor <dgregor@apple.com>
Mon, 1 Feb 2010 23:46:27 +0000 (23:46 +0000)
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

test/FixIt/fixit.cpp

index 04b99c9416542f125cd89bca41230dbeeb2eba45..ee93755775e5b4806a0ecdf1077e48a122ec8d37 100644 (file)
@@ -1,4 +1,4 @@
-// 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
@@ -28,11 +28,12 @@ struct CT<0> { }; // expected-error{{'template<>'}}
 
 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}}
+};