diff options
| author | Paul Robinson <paul.robinson@sony.com> | 2016-12-19 18:00:45 +0000 |
|---|---|---|
| committer | Paul Robinson <paul.robinson@sony.com> | 2016-12-19 18:00:45 +0000 |
| commit | 086c90b24a1da2acee9e058e5135a627cee2fe04 (patch) | |
| tree | 2287bd94c44ef50b7cb050aabd39fe0622a3dec9 /clang/test/FixIt | |
| parent | 514e743b06bbd748d11031717f84915021f659a2 (diff) | |
| download | bcm5719-llvm-086c90b24a1da2acee9e058e5135a627cee2fe04.tar.gz bcm5719-llvm-086c90b24a1da2acee9e058e5135a627cee2fe04.zip | |
Undo accidental comit
llvm-svn: 290121
Diffstat (limited to 'clang/test/FixIt')
| -rw-r--r-- | clang/test/FixIt/fixit.cpp | 21 |
1 files changed, 4 insertions, 17 deletions
diff --git a/clang/test/FixIt/fixit.cpp b/clang/test/FixIt/fixit.cpp index 57a1c548516..686cc23d635 100644 --- a/clang/test/FixIt/fixit.cpp +++ b/clang/test/FixIt/fixit.cpp @@ -1,12 +1,8 @@ -// RUN: %clang_cc1 -pedantic -Wall -Wno-comment -verify -fcxx-exceptions -x c++ -std=c++98 %s -// RUN: cp %s %t-98 -// RUN: not %clang_cc1 -pedantic -Wall -Wno-comment -fcxx-exceptions -fixit -x c++ -std=c++98 %t-98 -// RUN: %clang_cc1 -fsyntax-only -pedantic -Wall -Werror -Wno-comment -fcxx-exceptions -x c++ -std=c++98 %t-98 +// RUN: %clang_cc1 -pedantic -Wall -Wno-comment -verify -fcxx-exceptions -x c++ %s // RUN: not %clang_cc1 -fsyntax-only -fdiagnostics-parseable-fixits -x c++ -std=c++11 %s 2>&1 | FileCheck %s -// RUN: %clang_cc1 -pedantic -Wall -Wno-comment -verify -fcxx-exceptions -x c++ -std=c++11 %s -// RUN: cp %s %t-11 -// RUN: not %clang_cc1 -pedantic -Wall -Wno-comment -fcxx-exceptions -fixit -x c++ -std=c++11 %t-11 -// RUN: %clang_cc1 -fsyntax-only -pedantic -Wall -Werror -Wno-comment -fcxx-exceptions -x c++ -std=c++11 %t-11 +// RUN: cp %s %t +// RUN: not %clang_cc1 -pedantic -Wall -Wno-comment -fcxx-exceptions -fixit -x c++ %t +// RUN: %clang_cc1 -fsyntax-only -pedantic -Wall -Werror -Wno-comment -fcxx-exceptions -x c++ %t /* This is a test of the various code modification hints that are provided as part of warning or extension diagnostics. All of the @@ -25,10 +21,7 @@ static void C1::g() { } // expected-error{{'static' can only be specified inside template<int Value> struct CT { template<typename> struct Inner; }; // expected-note{{previous use is here}} -// In C++11 this gets 'expected unqualified-id' which fixit can't fix. -#if __cplusplus < 201103L CT<10 >> 2> ct; // expected-warning{{require parentheses}} -#endif class C3 { public: @@ -48,11 +41,7 @@ protected: }; class B : public A { -#if __cplusplus >= 201103L - A::foo; // expected-error{{ISO C++11 does not allow access declarations}} -#else A::foo; // expected-warning{{access declarations are deprecated}} -#endif }; void f() throw(); // expected-note{{previous}} @@ -296,10 +285,8 @@ namespace greatergreater { void (*p)() = &t<int>; (void)(&t<int>==p); // expected-error {{use '> ='}} (void)(&t<int>>=p); // expected-error {{use '> >'}} -#if __cplusplus < 201103L (void)(&t<S<int>>>=p); // expected-error {{use '> >'}} (Shr)&t<S<int>>>>=p; // expected-error {{use '> >'}} -#endif // FIXME: We correct this to '&t<int> > >= p;' not '&t<int> >>= p;' //(Shr)&t<int>>>=p; |

