Skip to content

Commit f94fdfc

Browse files
committed
rename test namespaces to make more sense
1 parent 43f0448 commit f94fdfc

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

clang/test/SemaCXX/alias-template.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,14 +54,19 @@ namespace LookupFilter {
5454
template<typename U> using S = S<U>*; // ok
5555
}
5656

57-
namespace InFunctions {
57+
namespace UnexpectedPack {
5858
template<typename...T> struct S0 {
5959
template<typename Z> using U = T*; // expected-error {{declaration type contains unexpanded parameter pack 'T'}}
6060
U<char> u;
6161
};
62+
}
6263

64+
namespace InvalidType {
6365
template<typename Z> using T1 = int;
6466
template<typename Z> using T2 = int[-1]; // expected-error {{array size is negative}}
67+
}
68+
69+
namespace ShadowTemplateParam {
6570
template<typename...T> struct S3 { // expected-note {{template parameter is declared here}}
6671
template<typename Z> using T = int; // expected-error {{declaration of 'T' shadows template parameter}}
6772
};

0 commit comments

Comments
 (0)