Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / CXX / temp / temp.spec / temp.explicit / p8.cpp
blob550078ab147c9761ccc2b24dc598a0dbf33c0142
1 // RUN: %clang_cc1 -fsyntax-only -verify -std=c++11 %s
3 template<typename T>
4 struct X0 {
5 struct MemberClass;
7 T* f0(T* ptr);
9 static T* static_member;
12 template class X0<int(int)>; // ok; nothing gets instantiated.
14 template<typename T>
15 struct X0<T>::MemberClass {
16 T member;
19 template<typename T>
20 T* X0<T>::f0(T* ptr) {
21 return ptr + 1;
24 template<typename T>
25 T* X0<T>::static_member = 0;
27 template class X0<int>; // ok
30 template<typename T>
31 struct X1 {
32 enum class E {
33 e = T::error // expected-error 2{{no members}}
36 template struct X1<int>; // expected-note {{here}}
38 extern template struct X1<char>; // ok
40 template struct X1<char>; // expected-note {{here}}