Skip to content

Commit 43d34ef

Browse files
move tests to existing file
1 parent 47e5bfa commit 43d34ef

File tree

2 files changed

+33
-33
lines changed

2 files changed

+33
-33
lines changed

clang/test/SemaCXX/member-template-specialization.cpp

Lines changed: 0 additions & 33 deletions
This file was deleted.

clang/test/SemaCXX/template-specialization.cpp

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,36 @@ int main() {
1919
B::foo<4>(); // expected-note {{in instantiation of function template specialization 'B::foo<4>'}}
2020
return 0;
2121
}
22+
23+
namespace GH70375 {
24+
25+
template <typename Ty>
26+
struct S {
27+
static void bar() {
28+
Ty t;
29+
t.foo();
30+
}
31+
32+
static void take(Ty&) {}
33+
};
34+
35+
template <typename P>
36+
struct Outer {
37+
template <typename C>
38+
struct Inner;
39+
40+
using U = S<Inner<P>>;
41+
42+
template <>
43+
struct Inner<void> {
44+
void foo() {
45+
U::take(*this);
46+
}
47+
};
48+
};
49+
50+
void instantiate() {
51+
Outer<void>::U::bar();
52+
}
53+
54+
}

0 commit comments

Comments
 (0)