Home
last modified time | relevance | path

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

12345678910

/external/clang/test/CXX/temp/temp.spec/temp.expl.spec/
Dp2-0x.cpp53 struct X0 { // expected-note {{here}} struct
74 void N0::X0<T>::ft1(T t, U u) { in ft1() argument
78 template<typename T> T N0::X0<T>::member;
80 template<> struct N0::X0<void> { }; struct in N0
81 N0::X0<void> test_X0;
84 …template<> struct N0::X0<const void> { }; // expected-error{{class template specialization of 'X0'… struct in N1::N0
88 template<> struct X0<volatile void>;
91 template<> struct N0::X0<volatile void> { struct in N0
134 template<> void N0::X0<void*>::f1(void *) { } in f1()
136 void test_spec(N0::X0<void*> xvp, void *vp) { in test_spec()
[all …]
Dp2.cpp52 struct X0 { // expected-note 2{{here}} struct
73 void N0::X0<T>::ft1(T t, U u) { in ft1() argument
77 template<typename T> T N0::X0<T>::member;
79 template<> struct N0::X0<void> { }; // expected-warning{{C++11 extension}} struct in N0
80 N0::X0<void> test_X0;
83 template<> struct N0::X0<const void> { }; // expected-error{{not in a namespace enclosing 'N0'}} struct in N1::N0
87 template<> struct X0<volatile void>;
90 template<> struct N0::X0<volatile void> { struct in N0
95 template<> void N0::X0<void*>::f1(void *) { } // expected-warning{{member function specialization}} in f1()
97 void test_spec(N0::X0<void*> xvp, void *vp) { in test_spec()
[all …]
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()
67 NonDefaultConstructible X0<NonDefaultConstructible>::member = 17;
70 return X0<NonDefaultConstructible>::member; in get_static_member()
75 struct X0<void*>::Inner { };
[all …]
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
/external/clang/test/SemaTemplate/
Dcurrent-instantiation.cpp12 struct X0 { struct
17 void f0(typename X0::U_type&); argument
18 void f0(typename X0::T_type&); // expected-error{{redecl}}
21 void f1(typename X0::U_type&);
22 void f1(typename X0<T, U>::T_type&); // expected-error{{redecl}}
25 void f2(typename X0::U_type&);
26 void f2(typename X0<T_type, U_type>::T_type&); // expected-error{{redecl}}
29 void f3(typename X0::U_type&);
30 void f3(typename ::X0<T_type, U_type>::T_type&); // expected-error{{redecl}}
36 void g0(typename X0::U_type&); argument
[all …]
Dextern-templates.cpp4 class X0 { class
14 void X0<T>::f(T t) { in f()
18 extern template class X0<int>;
20 extern template class X0<int*>;
23 void X0<T>::Inner::g(T t) { in g()
27 void test_intptr(X0<int*> xi, X0<int*>::Inner xii) { in test_intptr()
32 extern template class X0<long*>;
34 void test_longptr(X0<long*> xl, X0<long*>::Inner xli) { in test_longptr()
39 template class X0<long*>; // expected-note 2{{instantiation}} variable
Dexplicit-instantiation.cpp12 struct X0 { struct
25 T X0<T>::value; // expected-error{{no matching constructor}} argument
27 template int X0<int>::value;
33 template NotDefaultConstructible X0<NotDefaultConstructible>::value; // expected-note{{instantiatio…
35 template int X0<int>::f0(int);
36 template int* X0<int>::f0(int*, int*); // expected-note{{in instantiation of member function 'X0<in…
37 template int X0<int>::f0(int, float);
39 template int X0<int>::f0(int) const; // expected-error{{does not refer}}
40 template int* X0<int>::f0(int*, float*); // expected-error{{does not refer}}
45 template MemPtr X0<MemPtr>::f0(MemPtr); // expected-note{{requested here}}
[all …]
Dinjected-class-name.cpp20 struct X0 { struct
25 void f0(const X0&); // expected-note{{here}} argument
26 void f0(X0&);
27 void f0(const X0<T, U>&); // expected-error{{redecl}}
29 void f1(const X0&); // expected-note{{here}}
30 void f1(X0&);
31 void f1(const X0<type, U_type2>&); // expected-error{{redecl}}
33 void f2(const X0&); // expected-note{{here}}
34 void f2(X0&);
35 void f2(const ::X0<type, U_type2>&); // expected-error{{redecl}}
Dconstructor-template.cpp5 struct X0 { // expected-note {{candidate constructor (the implicit copy constructor) not viable}} struct
9 X0(int); // expected-note{{candidate}}
10 template<typename T> X0(T); // expected-note {{candidate}}
11 template<typename T, typename U> X0(T*, U*); // 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()
[all …]
Dtemp_explicit.cpp4 template<typename T, typename U = T> class X0 { }; class
11 template class X0<int, float>; variable
12 template class X0<int>; // expected-note{{previous}} variable
22 template class X0<double> { }; // expected-error{{explicit specialization}} variable
26 template class X0<int, int>; // expected-error{{duplicate}} variable
28 template<> class X0<char> { }; // expected-note{{previous}} class
29 template class X0<char>; // expected-warning{{ignored}} variable
31 void foo(X0<short>) { } in foo()
32 template class X0<short>; variable
/external/clang/test/CXX/over/over.match/over.match.funcs/
Dp4-0x.cpp8 struct X0 { struct
23 int &operator+(const X0&) &; argument
24 float &operator+(const X0&) &&;
35 void X0::g() { in g()
37 int &ir2 = X0::f(); in g()
41 int &ir1 = lvalue<X0>().f(); in test_ref_qualifier_binding()
42 float &fr1 = xvalue<X0>().f(); in test_ref_qualifier_binding()
43 float &fr2 = prvalue<X0>().f(); in test_ref_qualifier_binding()
44 int &ir2 = lvalue<X0>().ft(1); in test_ref_qualifier_binding()
45 float &fr3 = xvalue<X0>().ft(2); in test_ref_qualifier_binding()
[all …]
/external/clang/test/CXX/special/class.ctor/
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 …]
/external/clang/test/CXX/temp/temp.arg/temp.arg.nontype/
Dp5.cpp11 template<short s> struct X0 { }; struct
12 X0<17> x0i;
13 X0<'a'> x0c;
141 template<int (*)(int)> struct X0 { }; // expected-note 3{{template parameter is declared here}} struct
146 void x0a(X0<f>);
147 void x0b(X0<&f>);
148 …void x0c(X0<g>); // expected-error{{non-type template argument of type 'int (float)' cannot be con…
149 …void x0d(X0<&g>); // expected-error{{non-type template argument of type 'int (*)(float)' cannot be…
150 void x0e(X0<funcptr>); // expected-error{{must have its address taken}}
158 template<int (&)(int)> struct X0 { }; // expected-note 4{{template parameter is declared here}} struct
[all …]
Dp1.cpp13 template <int N> struct X0 { X0(); }; struct
14 template <int N> X0<N>::X0() { } in X0() function in non_type_tmpl_param::X0
33 template <int* p> struct X0 { }; // expected-note 5{{here}} struct
49 X0<i> x0a; // expected-error {{must have its address taken}} in test()
50 X0<&i> x0a_addr; in test()
51 X0<iarr> x0b; in test()
52 X0<&iarr> x0b_addr; // expected-error {{cannot be converted to a value of type 'int *'}} in test()
53X0<ki> x0c; // expected-error {{must have its address taken}} expected-warning {{internal linkage … in test()
54X0<&ki> x0c_addr; // expected-error {{cannot be converted to a value of type 'int *'}} expected-wa… in test()
55 X0<&ti> x0d_addr; // expected-error {{refers to thread-local object}} in test()
[all …]
/external/clang/test/CXX/temp/temp.spec/temp.explicit/
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 …]
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 …]
Dp4.cpp7 struct X0 { struct
15 template void X0<int>::f1(); // expected-error{{explicit instantiation of undefined member function… argument
17 template int X0<int>::value; // expected-error{{explicit instantiation of undefined static data mem…
22 template<> void X0<long>::f1(); // expected-note{{previous template specialization is here}}
23 template void X0<long>::f1(); // expected-warning{{explicit instantiation of 'f1' that occurs after…
25 template<> struct X0<long>::Inner; // expected-note{{previous template specialization is here}}
26 template struct X0<long>::Inner; // expected-warning{{explicit instantiation of 'Inner' that occurs…
28 template<> long X0<long>::value; // expected-note{{previous template specialization is here}}
29 template long X0<long>::value; // expected-warning{{explicit instantiation of 'value' that occurs a…
31 template<> struct X0<double>; // expected-note{{previous template specialization is here}}
[all …]
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
/external/clang/test/CXX/temp/temp.decls/temp.class/temp.mem.func/
Dp1.cpp3 class X0 { class
7 X0(int);
8 ~X0();
25 void X0<T, U>::f0(const T&, const U&) { // expected-note{{previous definition}} in f0()
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()
50 void X0<T, U>::f0(const T&, const U&) { // expected-error{{redefinition}} in f0()
[all …]
/external/clang/test/CXX/expr/expr.mptr.oper/
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()
13 void (X0::*pmcv)() const 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()
[all …]
/external/clang/test/CXX/temp/temp.decls/temp.variadic/
Dfixed-expansion.cpp21 class X0 { }; class
26 typedef X0<Ts...> type;
30 X0<int, int, pair<int, int>, pair<int, int>*>>::value,
34 X0<int, int, float, float*>>::value,
38 X0<int, int, float, double>>::value,
47 class X0 { }; class
52 typedef X0<char, Ts...> type;
56 X0<char, int, pair<char, int>, pair<char, int>*>>::value,
60 X0<char, int, float, float*>>::value,
64 X0<char, int, float, double>>::value,
[all …]
/external/clang/test/CXX/temp/temp.spec/
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}}
/external/clang/test/CXX/basic/basic.lookup/basic.lookup.qual/class.qual/
Dp2.cpp3 struct X0 { struct
4 X0 f1();
5 X0 f2();
22 X0::X0 X0::f1() { return X0(); } // expected-error{{qualified reference to 'X0' is a constructor na… in f1()
24 struct X0::X0 X0::f2() { return X0(); } in f2()
/external/clang/test/CXX/except/except.spec/
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 { };
/external/clang/test/CXX/temp/temp.decls/temp.class.spec/
Dp6.cpp5 struct X0 { struct
16 struct X0<T>::Inner0<const U*> { argument
20 int array0[X0<int>::Inner0<int>::value == 0? 1 : -1];
21 int array1[X0<int>::Inner0<int*>::value == 1? 1 : -1];
22 int array2[X0<int>::Inner0<const int*>::value == 2? 1 : -1];
49 struct X0<float>::Inner0<Z*> {
53 int array3[X0<float>::Inner0<int>::value == 0? 1 : -1];
54 int array4[X0<float>::Inner0<int*>::value == 3? 1 : -1];
55 int array5[X0<float>::Inner0<const int*>::value == 2? 1 : -1];

12345678910