diff options
author | dim <dim@FreeBSD.org> | 2014-11-24 09:15:30 +0000 |
---|---|---|
committer | dim <dim@FreeBSD.org> | 2014-11-24 09:15:30 +0000 |
commit | 173a4f43a911175643bda81ee675e8d9269056ea (patch) | |
tree | 47df2c12b57214af6c31e47404b005675b8b7ffc /test/FixIt/fixit.cpp | |
parent | 88f7a7d5251a2d813460274c92decc143a11569b (diff) | |
download | FreeBSD-src-173a4f43a911175643bda81ee675e8d9269056ea.zip FreeBSD-src-173a4f43a911175643bda81ee675e8d9269056ea.tar.gz |
Vendor import of clang RELEASE_350/final tag r216957 (effectively, 3.5.0 release):
https://llvm.org/svn/llvm-project/cfe/tags/RELEASE_350/final@216957
Diffstat (limited to 'test/FixIt/fixit.cpp')
-rw-r--r-- | test/FixIt/fixit.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/test/FixIt/fixit.cpp b/test/FixIt/fixit.cpp index 52bbb38..f264938 100644 --- a/test/FixIt/fixit.cpp +++ b/test/FixIt/fixit.cpp @@ -19,7 +19,7 @@ virtual void C1::f() { } // expected-error{{'virtual' can only be specified insi static void C1::g() { } // expected-error{{'static' can only be specified inside the class definition}} -template<int Value> struct CT { }; // expected-note{{previous use is here}} +template<int Value> struct CT { template<typename> struct Inner; }; // expected-note{{previous use is here}} CT<10 >> 2> ct; // expected-warning{{require parentheses}} @@ -32,6 +32,8 @@ struct CT<0> { }; // expected-error{{'template<>'}} template<> union CT<1> { }; // expected-error{{tag type}} +struct CT<2>::Inner<int> { }; // expected-error 2{{'template<>'}} + // Access declarations class A { protected: @@ -202,7 +204,7 @@ template<class T> typedef Mystery<T>::type getMysteriousThing() { // \ } template<template<typename> Foo, // expected-error {{template template parameter requires 'class' after the parameter list}} - template<typename> typename Bar, // expected-error {{template template parameter requires 'class' after the parameter list}} + template<typename> typename Bar, // expected-warning {{template template parameter using 'typename' is a C++1z extension}} template<typename> struct Baz> // expected-error {{template template parameter requires 'class' after the parameter list}} void func(); |