Home
last modified time | relevance | path

Searched refs:X0 (Results 1 – 25 of 263) sorted by relevance

1234567891011

/llvm-project-15.0.7/clang/test/CXX/temp/temp.spec/temp.expl.spec/
H A Dp2-0x.cpp71 void N0::X0<T>::ft1(T t, U u) { in ft1() argument
78 N0::X0<void> test_X0;
176 struct X0<void*>::Inner { };
179 struct X0<int>::Inner { };
182 struct X0<unsigned>::Inner;
185 struct X0<float>::Inner;
205 N0::X0<void*>::Inner inner0;
206 N0::X0<int>::Inner inner1;
207 N0::X0<long>::Inner inner2;
208 N0::X0<float>::Inner inner3;
[all …]
H A Dp2.cpp77 void N0::X0<T>::ft1(T t, U u) { in ft1() argument
84 N0::X0<void> test_X0;
144 struct X0<void*>::Inner { };
147 struct X0<int>::Inner { };
150 struct X0<unsigned>::Inner;
153 struct X0<float>::Inner;
173 N0::X0<void*>::Inner inner0;
174 N0::X0<int>::Inner inner1;
175 N0::X0<long>::Inner inner2;
176 N0::X0<float>::Inner inner3;
[all …]
H A Dp1.cpp30 struct X0 { struct
48 void X0<T>::ft1(T t, U u) { in ft1() argument
52 template<typename T> T X0<T>::member;
54 template<> struct X0<void> { }; struct
55 X0<void> test_X0;
59 template<> void X0<void*>::f1(void *) { } in f1()
61 void test_spec(X0<void*> xvp, void *vp) { in test_spec()
75 struct X0<void*>::Inner { };
77 X0<void*>::Inner inner0;
82 struct X0<void*>::InnerTemplate<int> { };
[all …]
H A Dp6.cpp4 struct X0 { struct
16 int &use_X0_int(X0<int> x0i, // expected-note{{implicit instantiation first required here}} in use_X0_int() argument
20 X0<int>::Nested nested; // expected-note{{implicit instantiation first required here}} in use_X0_int()
21 return X0<int>::member; // expected-note{{implicit instantiation first required here}} in use_X0_int()
25 void X0<int>::f() { // expected-error{{after instantiation}} in f()
29 void X0<int>::g(int) { // expected-error{{after instantiation}} in g()
33 struct X0<int>::Nested { }; // expected-error{{after instantiation}}
36 int X0<int>::member = 17; // expected-error{{after instantiation}}
39 struct X0<int> { }; // expected-error{{after instantiation}} struct
/llvm-project-15.0.7/clang/test/CXX/over/over.match/over.match.funcs/
H A Dp4-0x.cpp7 struct X0 { struct
34 int &operator+(const X0&) &; argument
48 int &ir2 = X0::f(); in g()
52 int &ir1 = lvalue<X0>().f(); in test_ref_qualifier_binding()
61 int &ir1 = lvalue<X0>()(); in test_ref_qualifier_binding_with_surrogates()
67 int &ir1 = lvalue<X0>() + prvalue<X0>(); in test_ref_qualifier_binding_operators()
68 float &fr1 = xvalue<X0>() + prvalue<X0>(); in test_ref_qualifier_binding_operators()
69 float &fr2 = prvalue<X0>() + prvalue<X0>(); in test_ref_qualifier_binding_operators()
94 lvalue<X0>().lvalue(); in test_diagnostics()
100 xvalue<X0>().rvalue(); in test_diagnostics()
[all …]
/llvm-project-15.0.7/clang/test/SemaTemplate/
H A Dcurrent-instantiation.cpp12 struct X0 { struct
17 void f0(typename X0::U_type&); argument
21 void f1(typename X0::U_type&);
25 void f2(typename X0::U_type&);
29 void f3(typename X0::U_type&);
36 void g0(typename X0::U_type&); argument
75 struct X0<T*, U*> { struct
82 void f0(typename X0::U_type&); argument
86 void f1(typename X0::U_type&);
102 void f5(::X0<T, U>*);
[all …]
H A Dextern-templates.cpp5 class X0 { class
15 void X0<T>::f(T t) { in f()
19 extern template class X0<int>;
21 extern template class X0<int*>;
24 void X0<T>::Inner::g(T t) { in g()
32 void test_intptr(X0<int*> xi, X0<int*>::Inner xii) { in test_intptr()
41 extern template class X0<long*>;
43 void test_longptr(X0<long*> xl, X0<long*>::Inner xli) { in test_longptr()
48 template class X0<long*>; // expected-note 2{{instantiation}} variable
H A Dexplicit-instantiation.cpp12 struct X0 { struct
25 T X0<T>::value; // expected-error{{no matching constructor}} argument
27 template int X0<int>::value;
35 template int X0<int>::f0(int);
37 template int X0<int>::f0(int, float);
39 template int X0<int>::f0(int) const; // expected-error{{does not refer}}
45 template MemPtr X0<MemPtr>::f0(MemPtr); // expected-note{{requested here}}
83 template <int I> struct X0 { static int x; }; struct
84 template <int I> int X0<I>::x;
85 void test1() { (void)&X0<1>::x; } in test1()
[all …]
H A Dinjected-class-name.cpp23 struct X0 { struct
28 void f0(const X0&); // expected-note{{here}} argument
29 void f0(X0&);
30 void f0(const X0<T, U>&); // expected-error{{redecl}}
32 void f1(const X0&); // expected-note{{here}}
33 void f1(X0&);
34 void f1(const X0<type, U_type2>&); // expected-error{{redecl}}
36 void f2(const X0&); // expected-note{{here}}
37 void f2(X0&);
38 void f2(const ::X0<type, U_type2>&); // expected-error{{redecl}}
H A Dconstructor-template.cpp9 X0(int); // expected-note{{candidate}}
10 template<typename T> X0(T); // expected-note {{candidate}}
14 template<typename T> X0() : f0(T::foo) {} // expected-note {{candidate}} in X0() argument
18 void accept_X0(X0); argument
21 X0 x0a(i); in test_X0()
22 X0 x0b(f); in test_X0()
23 X0 x0c = i; in test_X0()
24 X0 x0d = f; in test_X0()
29 X0 x0e(&i, &f); in test_X0()
30 X0 x0f(&f, &i); in test_X0()
[all …]
H A Dtemp_explicit.cpp6 template<typename T, typename U = T> class X0 { }; class
13 template class X0<int, float>; variable
14 template class X0<int>; // expected-note{{previous}} variable
24 template class X0<double> { }; // expected-error{{explicit specialization}} variable
28 template class X0<int, int>; // expected-error{{duplicate}} variable
30 template<> class X0<char> { }; // expected-note{{previous}} class
31 template class X0<char>; // expected-warning{{has no effect}} variable
33 void foo(X0<short>) { } in foo()
34 template class X0<short>; variable
H A Dinstantiate-member-template.cpp4 struct X0 { struct
10 X0<int> x0i;
11 X0<void> x0v;
12 X0<int&> x0ir; // expected-note{{instantiation}}
15 X0<int> xi; in test_X0()
20 X0<void> xv; in test_X0()
122 struct X0 { }; struct
126 template<typename T> void g(X0<T>& vals) { } in g()
129 void test(X1 x1, X0<int> x0i, X0<long> x0l) { in test()
137 struct X0 { struct
[all …]
/llvm-project-15.0.7/clang/test/CXX/basic/basic.lookup/basic.lookup.qual/class.qual/
H A Dp2.cpp3 struct X0 { struct
4 X0();
5 X0(int);
6 X0 f1();
7 X0 f2();
9 typedef X0 B; argument
13 struct X1 : X0 {
30 X0::X0 X0::f1() { return X0(); } // expected-error{{qualified reference to 'X0' is a constructor na… in f1()
32 struct X0::X0 X0::f2() { return X0(); } in f2()
54 X0::X0::A ok2; in other_contexts()
[all …]
/llvm-project-15.0.7/clang/test/CXX/temp/temp.arg/temp.arg.nontype/
H A Dp5.cpp15 template<short s> struct X0 { }; struct
16 X0<17> x0i;
17 X0<'a'> x0c;
173 void x0a(X0<f>);
174 void x0b(X0<&f>);
177 void x0e(X0<funcptr>);
195 void x0a(X0<f>);
224 X0<&Y::f> x0a;
225 X0<&Y::g> x0b;
238 X0<&Y::y> x0a;
[all …]
H A Dp1.cpp15 template <int N> struct X0 { X0(); }; struct
16 template <int N> X0<N>::X0() { } in X0() function in non_type_tmpl_param::X0
35 template <int* p> struct X0 { }; // expected-note 5{{here}} struct
71 X0<i> x0a; in test()
78 X0<&i> x0a_addr; in test()
79 X0<iarr> x0b; in test()
81 X0<ki> x0c; // expected-error {{must have its address taken}} in test()
91 X0<&ti> x0d_addr; in test()
157 X0<&n> x0_no_linkage; in test()
167 X0<&S::NonStaticMember> x0_non_static; // expected-error {{non-static data member}} in test()
[all …]
/llvm-project-15.0.7/clang/test/CXX/special/class.ctor/
H A Dp1.cpp3 struct X0 { struct
6 X0(); argument
7 X0(int);
8 (X0)(float);
9 X0 (f0)(int);
10 X0 (f0)(type);
12 X0 f1();
13 X0 f1(double);
16 X0::X0() { } in X0() function in X0
17 (X0::X0)(int) { }
[all …]
/llvm-project-15.0.7/clang/test/CXX/temp/temp.spec/temp.explicit/
H A Dp3-0x.cpp14 struct X0 { struct
29 template<typename T> int X0<T>::value = 17;
37 template struct X0<X1>; variable
39 template struct X0<X2>::MemberClass;
41 template void X0<X2>::mem_func();
43 template struct X0<X2>::MemberClassTemplate<X1>;
45 template void X0<X2>::mem_func_template(X1&);
47 template int X0<X2>::value;
56 template struct has_inline_namespaces::X0<X3>; member in has_inline_namespaces
58 template struct has_inline_namespaces::X0<X4>::MemberClass;
[all …]
H A Dp10.cpp4 struct X0 { struct
13 void X0<T>::f(T& t) { in f() argument
18 struct X0<T>::Inner {
23 T X0<T>::static_var = 1; // expected-error{{cannot initialize}}
25 extern template struct X0<void*>;
26 template struct X0<void*>; // expected-note 2{{instantiation}} variable
28 template struct X0<int>; // expected-note 4{{explicit instantiation definition is here}} variable
30 extern template void X0<int>::f(int&); // expected-error{{follows explicit instantiation definition…
31 extern template struct X0<int>::Inner; // expected-error{{follows explicit instantiation definition…
32 extern template int X0<int>::static_var; // expected-error{{follows explicit instantiation definiti…
[all …]
H A Dp4.cpp8 struct X0 { struct
16 template void X0<int>::f1(); // expected-error{{explicit instantiation of undefined member function… argument
18 template int X0<int>::value; // expected-error{{explicit instantiation of undefined static data mem…
23 template<> void X0<long>::f1(); // expected-note{{previous template specialization is here}}
24 template void X0<long>::f1(); // expected-warning{{explicit instantiation of 'f1' that occurs after…
26 template<> struct X0<long>::Inner; // expected-note{{previous template specialization is here}}
27 template struct X0<long>::Inner; // expected-warning{{explicit instantiation of 'Inner' that occurs…
29 template<> long X0<long>::value; // expected-note{{previous template specialization is here}}
30 template long X0<long>::value; // expected-warning{{explicit instantiation of 'value' that occurs a…
32 template<> struct X0<double>; // expected-note{{previous template specialization is here}}
[all …]
H A Dp7.cpp4 struct X0 { struct
17 T* X0<T>::static_member = ((T*)0) + 1; // expected-error{{pointer to the function}} argument
19 template class X0<int>; // okay variable
21 template class X0<int(int)>; // expected-note 3{{requested here}} variable
26 struct X0<int(long)>::MemberClass { };
30 int_long_func *X0<int_long_func>::f0(int_long_func *) { return 0; } in f0()
33 int_long_func *X0<int(long)>::static_member;
35 template class X0<int(long)>; variable
/llvm-project-15.0.7/clang/test/CXX/temp/temp.decls/temp.class/temp.mem.func/
H A Dp1.cpp3 class X0 { class
7 X0(int);
8 ~X0();
29 X& X0<X, Y>::operator[](int i) const { in operator []()
35 void X0<X, Y>::f1(int) const { } in f1()
38 void X0<X, Y>::f2(size_type) const { } in f2()
41 void X0<X, Y>::f3(size_type) const { in f3()
45 void X0<Y, X>::f4() { } // expected-error{{does not refer}} in f4()
55 X0<T, U>::X0(int x) : value(x) { } in X0() function in X0
58 X0<T, U>::~X0() { } in ~X0()
[all …]
/llvm-project-15.0.7/clang/test/CXX/expr/expr.mptr.oper/
H A Dp5.cpp3 struct X0 { struct
10 void test_object_cvquals(void (X0::*pm)(), in test_object_cvquals()
11 void (X0::*pmc)() const, in test_object_cvquals()
12 void (X0::*pmv)() volatile, in test_object_cvquals()
14 X0 *p, in test_object_cvquals()
15 const X0 *pc, in test_object_cvquals()
16 volatile X0 *pv, in test_object_cvquals()
17 const volatile X0 *pcv, in test_object_cvquals()
18 X0 &o, in test_object_cvquals()
19 const X0 &oc, in test_object_cvquals()
[all …]
/llvm-project-15.0.7/clang/test/CXX/temp/temp.decls/temp.variadic/
H A Dfixed-expansion.cpp21 class X0 { }; class
26 typedef X0<Ts...> type;
34 X0<int, int, float, float*>>::value,
38 X0<int, int, float, double>>::value,
47 class X0 { }; class
52 typedef X0<char, Ts...> type;
60 X0<char, int, float, float*>>::value,
64 X0<char, int, float, double>>::value,
111 struct X0; // expected-note 2{{template is declared here}}
118 X0<int, float> x0if;
[all …]
/llvm-project-15.0.7/clang/test/CXX/temp/temp.spec/
H A Dp5.cpp8 struct X0 { struct
17 T X0<T>::value = 3.14; // expected-warning{{implicit conversion from 'double' to 'int' changes valu… argument
19 template struct X0<int>; // expected-note{{previous explicit instantiation}} \ variable
21 template struct X0<int>; // expected-error{{duplicate explicit instantiation}} variable
23 template void X0<float>::f(float); // expected-note{{previous explicit instantiation}}
24 template void X0<float>::f(float); // expected-error{{duplicate explicit instantiation}}
26 template union X0<float>::Inner; // expected-note{{previous explicit instantiation}}
27 template union X0<float>::Inner; // expected-error{{duplicate explicit instantiation}}
29 template float X0<float>::value; // expected-note{{previous explicit instantiation}}
30 template float X0<float>::value; // expected-error{{duplicate explicit instantiation}}
/llvm-project-15.0.7/clang/test/CXX/except/except.spec/
H A Dp14-ir.cpp4 struct X0 { struct
5 X0();
6 X0(const X0 &) throw();
7 X0(X0 &);
18 struct X3 : X0, X1 {
26 struct X5 : X0, X4 { };

1234567891011