diff options
author | Douglas Gregor <dgregor@apple.com> | 2010-02-01 23:46:27 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2010-02-01 23:46:27 +0000 |
commit | f1d70adfd1f8e3349a77d58eeef4c0822ff2bdff (patch) | |
tree | 19da4d2f2ad52ad9e330c3fd7299d64ba9560b36 /clang/test/FixIt/fixit.cpp | |
parent | 6791a0d43b681042b5a75b4f9e4fd93184d3df17 (diff) | |
download | bcm5719-llvm-f1d70adfd1f8e3349a77d58eeef4c0822ff2bdff.tar.gz bcm5719-llvm-f1d70adfd1f8e3349a77d58eeef4c0822ff2bdff.zip |
Make this fix-it test case actually fail when there is a problem; add
a test for access declarations and remove a (broken) test for removal
of default arguments.
llvm-svn: 95032
Diffstat (limited to 'clang/test/FixIt/fixit.cpp')
-rw-r--r-- | clang/test/FixIt/fixit.cpp | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/clang/test/FixIt/fixit.cpp b/clang/test/FixIt/fixit.cpp index 04b99c94165..ee93755775e 100644 --- a/clang/test/FixIt/fixit.cpp +++ b/clang/test/FixIt/fixit.cpp @@ -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}} +}; |