| /llvm-project-15.0.7/clang/test/CXX/temp/temp.spec/temp.explicit/ |
| H A D | p3.cpp | 24 struct X2 { // expected-note 4{{refers here}} struct 31 template struct X2<int>::Inner<float>; // expected-error{{explicit instantiation of undefined templ… 43 template struct X2<float>::InnerClass; // expected-error{{undefined member}} 47 template X2<int>::X2(); // expected-error{{not an instantiation}} 48 template X2<int>::X2(const X2&); // expected-error{{not an instantiation}} 49 template X2<int>::~X2(); // expected-error{{not an instantiation}} 50 template X2<int> &X2<int>::operator=(const X2<int>&); // expected-error{{not an instantiation}}
|
| H A D | p1.cpp | 61 struct X2 { struct 76 T X2<T, U>::static_member1 = 17; // expected-error{{cannot initialize}} argument 79 U X2<T, U>::static_member2; // expected-error{{no matching}} 81 template void X2<int, float>::f(int &, float); 82 template void X2<int, float>::f(int &, double); // expected-error{{does not refer}} 83 template void X2<int, int*>::f(int&, int*); // expected-note{{instantiation}} 85 template struct X2<int, float>::Inner; 86 template struct X2<int, Incomplete>::Inner; // expected-note{{instantiation}} 88 template int X2<int, float>::static_member1; 89 template int* X2<int*, float>::static_member1; // expected-note{{instantiation}} [all …]
|
| H A D | p3-0x.cpp | 32 struct X2 {}; struct 35 template void f<X2>(X2&); 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;
|
| /llvm-project-15.0.7/clang/test/CodeGenCXX/ |
| H A D | mangle-ms-md5.cpp | 7 #define X2(X) C2(X, X) macro 8 #define X4(X) X2(X2(X)) 9 #define X8(X) X2(X4(X)) 10 #define X16(X) X2(X8(X)) 11 #define X32(X) X2(X16(X)) 12 #define X64(X) X2(X32(X)) 13 #define X128(X) X2(X64(X)) 14 #define X256(X) X2(X128(X)) 15 #define X512(X) X2(X256(X)) 16 #define X1024(X) X2(X512(X)) [all …]
|
| H A D | static-init-3.cpp | 26 template<typename T> struct X2 {}; struct 27 X2< B > bg = X1< X2< B > >::get(); 28 X2< A > ag = X1< X2< A > >::get();
|
| /llvm-project-15.0.7/compiler-rt/lib/xray/ |
| H A D | xray_trampoline_AArch64.S | 22 STP X1, X2, [SP, #-16]! 39 CMP X2, #0 45 BLR X2 56 LDP X1, X2, [SP], #16 75 STP X1, X2, [SP, #-16]! 92 CMP X2, #0 98 BLR X2 108 LDP X1, X2, [SP], #16 141 CMP X2, #0 149 BLR X2 [all …]
|
| /llvm-project-15.0.7/clang/test/SemaTemplate/ |
| H A D | dependent-type-identity.cpp | 11 struct X2 { struct 58 void f6(typename N::X2<T>::template apply<U> *); // expected-note{{previous}} 59 void f6(typename N::X2<U>::template apply<U> *); 60 void f6(typename N::X2<U>::template apply<T> *); 63 void f7(typename N::X2<T>::template apply<U> *); // expected-note{{previous}} 64 void f7(typename N::X2<U>::template apply<U> *); 65 void f7(typename N::X2<U>::template apply<T> *); 66 void f7(typename X2<type>::template apply<U_type> *); // expected-error{{redeclar}} 68 void f8(typename N::X2<T>::template apply<U> *); // expected-note{{previous}} 69 void f8(typename N::X2<U>::template apply<U> *); [all …]
|
| H A D | default-arguments.cpp | 51 struct X2 { struct 74 X2<int> x2i; // expected-note{{in instantiation of template class 'X2<int>' requested here}} argument 75 X2<int>::Inner1<float> x2iif; 77 X2<int>::Inner1<> x2bad; // expected-error{{too few template arguments for class template 'Inner1'}} 79 X2<int>::NonType1<'a'> x2_nontype1; 80 X2<int>::NonType1<> x2_nontype1_bad; // expected-error{{too few template arguments for class templa… 83 X2<int>::Inner3<float>::VeryInner<> vi; 93 X2<int>::Inner3<float>::VeryInner<int, float> >::value? 1 : -1]; 96 X2<char>::Inner3<int>::NonType2<sizeof(char), sizeof(int), 100 template<template<typename T> class X = X2> struct X3 { }; [all …]
|
| H A D | temp_class_order.cpp | 30 struct X2 { }; struct 33 struct X2<T*, U> { }; // expected-note{{matches}} struct 36 struct X2<T, U*> { }; // expected-note{{matches}} struct 39 struct X2<const T*, const U*> { }; struct 41 X2<int*, int*> x2a; // expected-error{{ambiguous}} 42 X2<const int*, const int*> x2b;
|
| H A D | constructor-template.cpp | 60 struct X2 { struct 61 X2(); // expected-note{{candidate constructor}} 62 X2(X2&); // expected-note {{candidate constructor}} 63 …template<typename T> X2(T); // expected-note {{candidate template ignored: instantiation would tak… 66 X2 test(bool Cond, X2 x2) { in test() 70 return X2(); // expected-error{{no matching constructor}} in test()
|
| H A D | friend-template.cpp | 154 template<typename , typename T> struct X2 struct 162 template <typename T1, typename T2, typename B> friend void op(X2<T1, T2>& , B); 164 template <typename Ch, typename Tr, typename B> void op(X2<Ch, Tr>& , B) in op() 166 X2<int, Tr> s; in op() 171 X2<int, X0<int> > ngs; in n() 186 template<typename , typename T> struct X2 struct 194 template <typename T1, typename T2, typename B> friend void op(X2<T1, T2>& , B); 196 template <typename Ch, typename Tr, typename B> void op(X2<Ch, Tr>& , B) in op() 198 X2<int, Tr> s; in op() 203 X2<int, X0<int> > ngs; in n()
|
| H A D | temp_explicit.cpp | 39 template<typename T> struct X2; // expected-note{{declared here}} 41 template struct X2<float>; // expected-error{{undefined template}} variable 44 struct X2 { struct 48 template struct X2<int>; // okay variable 49 template struct X2<int&>; // expected-note{{in instantiation of}} variable
|
| /llvm-project-15.0.7/clang/test/CXX/dcl.decl/dcl.init/dcl.init.ref/ |
| H A D | p5-cxx0x-no-extra-copy.cpp | 13 struct X2 { struct 14 X2(); 17 X2(const X2&); 46 void g2(const X2&); 53 g2(X2()); in test()
|
| H A D | p5-cxx03-extra-copy.cpp | 14 struct X2 { struct 15 X2(); 18 X2(const X2&); // expected-note{{declared private here}} 50 void g2(const X2&); 57 …g2(X2()); // expected-warning{{C++98 requires an accessible copy constructor for class 'X2' when b… in test()
|
| /llvm-project-15.0.7/libcxx/test/std/utilities/meta/meta.trans/meta.trans.other/ |
| H A D | common_reference.compile.pass.cpp | 43 struct X2 {}; struct 49 struct common_type<X2, Y2> { 53 struct common_type<Y2, X2> { 154 static_assert(std::is_same_v<std::common_reference_t<X2&, Y2 const&>, Z2>); 188 static_assert(!has_type<std::common_reference<std::tuple<int, const X2>, std::tuple<float, const Z2… 189 static_assert(!has_type<std::common_reference<std::tuple<int, X2>, std::tuple<float, Z2>>>); 190 static_assert(!has_type<std::common_reference<std::tuple<int, X2>, int, X2>>); 214 static_assert(std::is_same_v<std::common_reference_t<std::pair<int, X2>, std::pair<int, Y2>>, std::… 216 static_assert(!has_type<std::common_reference<std::pair<int, const X2>, std::pair<float, const Z2>>… 217 static_assert(!has_type<std::common_reference<std::pair<int, X2>, std::pair<float, Z2>>>); [all …]
|
| /llvm-project-15.0.7/clang/test/CXX/temp/temp.decls/temp.friend/ |
| H A D | p4.cpp | 13 struct X2 { struct 20 int array0[sizeof(X2<int>)]; 21 int array1[sizeof(X2<float>)]; // expected-note{{instantiation of}} 24 X2<int> xi; in g() 26 X2<float> xf; in g()
|
| /llvm-project-15.0.7/clang/test/SemaCXX/ |
| H A D | default-constructor-initializers.cpp | 9 struct X2 : X1 { struct 14 X2(int); 17 struct X3 : public X2 { 38 X2 x2; 45 X2 & rx2;
|
| /llvm-project-15.0.7/libcxx/test/std/utilities/function.objects/func.wrap/func.wrap.func/func.wrap.func.con/ |
| H A D | F_incomplete.pass.cpp | 53 IncompleteReturnType X2 = CX; in test_pr34298() local 54 assert(X2.fn); in test_pr34298() 56 X2.fn(); in test_pr34298() 61 IncompleteReturnType X2 = Empty; in test_pr34298() local 62 assert(!X2.fn); in test_pr34298()
|
| /llvm-project-15.0.7/clang/test/CXX/temp/temp.arg/temp.arg.nontype/ |
| H A D | p1.cpp | 41 template <int &p> struct X2 { }; // expected-note 4{{here}} struct 114 X2<i> x2a; in test() 115 X2<&i> x2a_addr; // expected-error {{address taken}} in test() 116 X2<iarr> x2b; // expected-error {{cannot bind to template argument of type 'int[10]'}} in test() 117 X2<&iarr> x2b_addr; // expected-error {{address taken}} in test() 118 X2<ki> x2c; // expected-error {{ignores qualifiers}} in test() 133 X2<ti> x2d_addr; // expected-error {{refers to thread-local object}} in test()
|
| /llvm-project-15.0.7/clang/test/CXX/temp/temp.decls/temp.class.spec/ |
| H A D | p8-0x.cpp | 8 template<typename T, int ...Values> struct X2; // expected-note {{here}} 9 template<int ...Values> struct X2<X1<Values...>, Values+1 ...> {}; // ok (DR1315) struct 10 X2<X1<1, 2, 3>, 2, 3, 4> x2; // ok 11 X2<X1<1, 2, 3>, 2, 3, 4, 5> x3; // expected-error {{undefined template}}
|
| /llvm-project-15.0.7/llvm/test/DebugInfo/X86/ |
| H A D | string-offsets-table-order.ll | 17 ; CHECK: DW_AT_comp_dir [DW_FORM_strx1] (indexed (00000001) string = "X2") 25 ; CHECK: 0x[[X2:[0-9a-f]*]]: "X2" 30 ; CHECK-NEXT: [[X2]] "X2" 59 @X2 = dso_local global i32 0, align 4, !dbg !21 63 !22 = distinct !DIGlobalVariable(name: "X2", scope: !20, file: !26, line: 1, type: !27, isLocal: fa… 64 !23 = !DIFile(filename: "-", directory: "X2", checksumkind: CSK_MD5, checksum: "f2e6e10e303927a308f… 67 !26 = !DIFile(filename: "<stdin>", directory: "X2", checksumkind: CSK_MD5, checksum: "f2e6e10e30392…
|
| /llvm-project-15.0.7/clang/test/CXX/expr/expr.post/expr.call/ |
| H A D | p7-0x.cpp | 7 struct X2 { struct 8 X2(); 9 ~X2(); 25 void f(X1 x1, X2 x2, X3 x3, X4 x4) { in f()
|
| /llvm-project-15.0.7/clang/test/CXX/except/except.spec/ |
| H A D | p14-ir.cpp | 15 struct X2 : X1 { struct 16 X2(); 28 void test(X2 x2, X3 x3, X5 x5) { in test() 33 X2 x2a(x2); in test()
|
| /llvm-project-15.0.7/clang/test/CXX/temp/temp.spec/temp.expl.spec/ |
| H A D | p2-0x.cpp | 299 struct X2; 306 template<> void f<X2>(X2&); 310 template<> struct X0<X2>::MemberClass { }; 312 template<> void X0<X2>::mem_func(); 314 template<> template<typename T> struct X0<X2>::MemberClassTemplate { }; 316 template<> template<typename T> void X0<X2>::mem_func_template(T&) { } in mem_func_template() 318 template<> int X0<X2>::value = 12;
|
| /llvm-project-15.0.7/llvm/test/Transforms/Reassociate/ |
| H A D | fast-basictest.ll | 307 %B = fmul fast float %A, %X2 ; -X1*X2 309 %D = fadd fast float %B, %C ; -X1*X2 + X1*X3 -> X1*(X3-X2) 321 %B = fmul fast float %A, %X2 ; -X1*X2 323 %D = fadd fast float %B, %C ; -X1*X2 + X1*X3 -> X1*(X3-X2) 335 %B = fmul reassoc nsz float %A, %X2 ; -X1*X2 352 %B = fmul reassoc float %A, %X2 ; -X1*X2 354 %D = fadd reassoc float %B, %C ; -X1*X2 + X1*X3 -> X1*(X3-X2) 370 %C = fmul fast float %X2, -47. ; X2*-47 371 %D = fadd fast float %B, %C ; X1*47 + X2*-47 -> 47*(X1-X2) 383 %C = fmul reassoc nsz float %X2, -47. ; X2*-47 [all …]
|