/external/clang/test/Preprocessor/ |
D | macro_with_initializer_list.cpp | 11 class Foo { class 13 Foo(); 14 Foo(std::initializer_list<int>); 15 bool operator==(const Foo); 16 Foo operator+(const Foo); 21 Foo F; in test_EQ() 22 F = Foo{1,2}; in test_EQ() 25 EQ(F,Foo()); in test_EQ() 26 EQ(F,Foo({1,2,3})); in test_EQ() 27 EQ(Foo({1,2,3}),F); in test_EQ() [all …]
|
/external/llvm-project/clang/test/Preprocessor/ |
D | macro_with_initializer_list.cpp | 11 class Foo { class 13 Foo(); 14 Foo(std::initializer_list<int>); 15 bool operator==(const Foo); 16 Foo operator+(const Foo); 21 Foo F; in test_EQ() 22 F = Foo{1,2}; in test_EQ() 25 EQ(F,Foo()); in test_EQ() 26 EQ(F,Foo({1,2,3})); in test_EQ() 27 EQ(Foo({1,2,3}),F); in test_EQ() [all …]
|
/external/rust/crates/crossbeam-utils/tests/ |
D | atomic_cell.rs | 37 struct Foo(); in drops_unit() struct 39 impl Foo { in drops_unit() impl 40 fn new() -> Foo { in drops_unit() 42 Foo() in drops_unit() 46 impl Drop for Foo { in drops_unit() implementation 52 impl Default for Foo { in drops_unit() implementation 53 fn default() -> Foo { in drops_unit() 54 Foo::new() in drops_unit() 58 let a = AtomicCell::new(Foo::new()); in drops_unit() 60 assert_eq!(a.swap(Foo::new()), Foo::new()); in drops_unit() [all …]
|
/external/llvm-project/libcxx/test/libcxx/utilities/meta/ |
D | is_referenceable.pass.cpp | 22 struct Foo {}; struct 32 static_assert(( std::__is_referenceable<Foo>::value), ""); 33 static_assert(( std::__is_referenceable<const Foo>::value), ""); 34 static_assert(( std::__is_referenceable<Foo &>::value), ""); 35 static_assert(( std::__is_referenceable<const Foo &>::value), ""); 37 static_assert(( std::__is_referenceable<Foo &&>::value), ""); 38 static_assert(( std::__is_referenceable<const Foo &&>::value), ""); 74 static_assert(( std::__is_referenceable<void (int, float, Foo &)>::value), ""); 76 static_assert((!std::__is_referenceable<void (int, float, Foo &) const>::value), ""); 77 static_assert((!std::__is_referenceable<void (int, float, Foo &) &>::value), ""); [all …]
|
/external/libcxx/test/libcxx/utilities/meta/ |
D | is_referenceable.pass.cpp | 23 struct Foo {}; struct 33 static_assert(( std::__is_referenceable<Foo>::value), ""); 34 static_assert(( std::__is_referenceable<const Foo>::value), ""); 35 static_assert(( std::__is_referenceable<Foo &>::value), ""); 36 static_assert(( std::__is_referenceable<const Foo &>::value), ""); 38 static_assert(( std::__is_referenceable<Foo &&>::value), ""); 39 static_assert(( std::__is_referenceable<const Foo &&>::value), ""); 75 static_assert(( std::__is_referenceable<void (int, float, Foo &)>::value), ""); 77 static_assert((!std::__is_referenceable<void (int, float, Foo &) const>::value), ""); 78 static_assert((!std::__is_referenceable<void (int, float, Foo &) &>::value), ""); [all …]
|
/external/llvm-project/llvm/test/tools/llvm-cxxfilt/ |
D | delimiters.test | 33 CHECK: ,,Foo! 34 CHECK: Foo" 35 CHECK: Foo# 36 CHECK: Foo% 37 CHECK: Foo& 38 CHECK: Foo' 39 CHECK: Foo( 40 CHECK: Foo) 41 CHECK: Foo* 42 CHECK: Foo+ [all …]
|
/external/llvm-project/clang-tools-extra/test/clang-tidy/checkers/ |
D | modernize-return-braced-init-list.cpp | 45 class Foo { class 47 Foo(Bar) {} in Foo() function in Foo 48 explicit Foo(Bar, unsigned int) {} in Foo() function in Foo 49 Foo(unsigned int) {} in Foo() function in Foo 54 Foo m() { in m() 56 return Foo(bm); in m() 62 class Quux : public Foo { 64 Quux(Bar bar) : Foo(bar) {} in Quux() 65 Quux(unsigned, unsigned, unsigned k = 0) : Foo(k) {} in Quux() 68 Foo f() { in f() [all …]
|
D | zircon-temporary-objects.cpp | 7 class Foo { class 9 Foo() = default; 10 Foo(int Val) : Val(Val){}; in Foo() function in Foo 38 int func(Foo F) { return 1; }; in func() 41 Foo F; in main() 42 Foo *F2 = new Foo(); in main() 43 new Foo(); in main() 44 Foo(); in main() 46 Foo F3 = Foo(); in main() 53 int A = func(Foo()); in main() [all …]
|
/external/llvm-project/clang/test/SemaCXX/ |
D | diagnose_if.cpp | 173 struct Foo { struct 179 Foo().foo(0); in runFoo() 180 Foo().foo(1); // expected-warning{{should warn}} in runFoo() 182 Foo().bar(0); in runFoo() 183 Foo().bar(1); // expected-error{{oh no}} in runFoo() 251 struct Foo { struct 258 struct Foo<int> { struct 265 Foo<double>().foo(); // expected-error{{override me}} in runAll() 266 Foo<int>().foo(); in runAll() 268 Foo<double>().bar(1); // expected-error{{bad i}} in runAll() [all …]
|
/external/llvm-project/libcxx/test/libcxx/depr/depr.function.objects/ |
D | adaptors.depr_in_cxx11.verify.cpp | 23 struct Foo { struct 37 … typedef std::mem_fun_t<int, Foo> MFT0; // expected-warning {{'mem_fun_t<int, Foo>' is deprecated}} in main() argument 38 …typedef std::mem_fun1_t<int, Foo, int> MFT1; // expected-warning {{'mem_fun1_t<int, Foo, int>' is … in main() 39 …typedef std::const_mem_fun_t<int, Foo> CMFT0; // expected-warning {{'const_mem_fun_t<int, Foo>' is… in main() 40 …typedef std::const_mem_fun1_t<int, Foo, int> CMFT1; // expected-warning {{'const_mem_fun1_t<int, F… in main() 41 std::mem_fun<int, Foo>(&Foo::zero); // expected-warning {{'mem_fun<int, Foo>' is deprecated}} in main() 42 …std::mem_fun<int, Foo, int>(&Foo::identity); // expected-warning {{'mem_fun<int, Foo, int>' is dep… in main() 43 …std::mem_fun<int, Foo>(&Foo::const_zero); // expected-warning {{'mem_fun<int, Foo>' is deprecated}} in main() 44 …std::mem_fun<int, Foo, int>(&Foo::const_identity); // expected-warning {{'mem_fun<int, Foo, int>' … in main() 46 …typedef std::mem_fun_ref_t<int, Foo> MFR0; // expected-warning {{'mem_fun_ref_t<int, Foo>' is depr… in main() [all …]
|
/external/llvm-project/llvm/test/CodeGen/X86/ |
D | preallocated.ll | 6 %Foo = type { i32, i32 } 8 declare void @init(%Foo*) 12 declare void @foo_p(%Foo* preallocated(%Foo)) 17 %a = call i8* @llvm.call.preallocated.arg(token %t, i32 0) preallocated(%Foo) 18 %b = bitcast i8* %a to %Foo* 21 call void @foo_p(%Foo* preallocated(%Foo) %b) ["preallocated"(token %t)] 30 %a = call i8* @llvm.call.preallocated.arg(token %t, i32 0) preallocated(%Foo) 31 %b = bitcast i8* %a to %Foo* 34 call void @foo_p(%Foo* preallocated(%Foo) %b) ["preallocated"(token %t)] 43 %a = call i8* @llvm.call.preallocated.arg(token %t, i32 0) preallocated(%Foo) [all …]
|
/external/libcxx/test/libcxx/depr/depr.function.objects/ |
D | adaptors.depr_in_cxx11.fail.cpp | 28 struct Foo { struct 42 typedef std::mem_fun_t<int, Foo> MFT0; // expected-error{{'mem_fun_t<int, Foo>' is deprecated}} in main() argument 43 …typedef std::mem_fun1_t<int, Foo, int> MFT1; // expected-error{{'mem_fun1_t<int, Foo, int>' is dep… in main() 44 …typedef std::const_mem_fun_t<int, Foo> CMFT0; // expected-error{{'const_mem_fun_t<int, Foo>' is de… in main() 45 …typedef std::const_mem_fun1_t<int, Foo, int> CMFT1; // expected-error{{'const_mem_fun1_t<int, Foo,… in main() 46 std::mem_fun<int, Foo>(&Foo::zero); // expected-error{{'mem_fun<int, Foo>' is deprecated}} in main() 47 …std::mem_fun<int, Foo, int>(&Foo::identity); // expected-error{{'mem_fun<int, Foo, int>' is deprec… in main() 48 std::mem_fun<int, Foo>(&Foo::const_zero); // expected-error{{'mem_fun<int, Foo>' is deprecated}} in main() 49 …std::mem_fun<int, Foo, int>(&Foo::const_identity); // expected-error{{'mem_fun<int, Foo, int>' is … in main() 51 …typedef std::mem_fun_ref_t<int, Foo> MFR0; // expected-error{{'mem_fun_ref_t<int, Foo>' is depreca… in main() [all …]
|
/external/llvm-project/llvm/test/Transforms/Inline/ |
D | inalloca-not-static.ll | 9 ; struct Foo { 10 ; Foo(); 11 ; Foo(const Foo &o); 12 ; ~Foo(); 15 ; __forceinline void h(Foo o) {} 16 ; __forceinline void g() { h(Foo()); } 24 %struct.Foo = type { i32 } 29 declare x86_thiscallcc %struct.Foo* @"\01??0Foo@@QAE@XZ"(%struct.Foo* returned) unnamed_addr 30 declare x86_thiscallcc void @"\01??1Foo@@QAE@XZ"(%struct.Foo*) unnamed_addr 41 %argmem = alloca inalloca <{ %struct.Foo }>, align 4 [all …]
|
/external/grpc-grpc/test/core/gprpp/ |
D | ref_counted_ptr_test.cc | 33 class Foo : public RefCounted<Foo> { class 35 Foo() : value_(0) {} in Foo() function in grpc_core::testing::__anon90a80ae10111::Foo 37 explicit Foo(int value) : value_(value) {} in Foo() function in grpc_core::testing::__anon90a80ae10111::Foo 45 TEST(RefCountedPtr, DefaultConstructor) { RefCountedPtr<Foo> foo; } in TEST() 48 RefCountedPtr<Foo> foo(nullptr); in TEST() 51 TEST(RefCountedPtr, ExplicitConstructor) { RefCountedPtr<Foo> foo(New<Foo>()); } in TEST() 54 RefCountedPtr<Foo> foo(New<Foo>()); in TEST() 55 RefCountedPtr<Foo> foo2(std::move(foo)); in TEST() 61 RefCountedPtr<Foo> foo(New<Foo>()); in TEST() 62 RefCountedPtr<Foo> foo2 = std::move(foo); in TEST() [all …]
|
/external/llvm-project/clang/test/clang-rename/ |
D | ComplicatedClassType.cpp | 2 class Foo; /* Test 1 */ // CHECK: class Bar; /* Test 1 */ 8 class Foo : public Baz { /* Test 2 */// CHECK: class Bar : public Baz { class 10 Foo(int value = 0) : x(value) {} // CHECK: Bar(int value = 0) : x(value) {} in Foo() function in Foo 12 Foo &operator++(int) { // CHECK: Bar &operator++(int) { in operator ++() 17 bool operator<(Foo const &rhs) { // CHECK: bool operator<(Bar const &rhs) { in operator <() 30 Foo *Pointer = 0; // CHECK: Bar *Pointer = 0; in main() 31 Foo Variable = Foo(10); // CHECK: Bar Variable = Bar(10); in main() 32 for (Foo it; it < Variable; it++) { // CHECK: for (Bar it; it < Variable; it++) { in main() 34 const Foo *C = new Foo(); // CHECK: const Bar *C = new Bar(); in main() 35 const_cast<Foo *>(C)->getValue(); // CHECK: const_cast<Bar *>(C)->getValue(); in main() [all …]
|
D | Variable.cpp | 3 int Foo; /* Test 1 */ // CHECK: int Bar; 5 int Foo; // CHECK: int Foo; 6 int Qux = Foo; // CHECK: int Qux = Foo; 7 int Baz = A::Foo; /* Test 2 */ // CHECK: Baz = A::Bar; 10 int Foo; // CHECK: int Foo; in fun() member 12 int Foo = 100; // CHECK: int Foo = 100; in fun() local 13 Baz = Foo; // CHECK: Baz = Foo; in fun() 15 extern int Foo; // CHECK: extern int Foo; in fun() 16 Baz = Foo; // CHECK: Baz = Foo; in fun() 17 Foo = A::Foo /* Test 3 */ + Baz; // CHECK: Foo = A::Bar /* Test 3 */ + Baz; in fun() [all …]
|
/external/llvm-project/llvm/test/DebugInfo/PDB/Inputs/ |
D | every-pointer.cpp | 12 struct Foo { struct 18 Foo *FooP = nullptr; argument 20 Foo F; 22 Foo __unaligned *UFooP = &F; 23 Foo * __restrict RFooP = &F; 25 const Foo * CFooP = &F; 26 volatile Foo * VFooP = &F; 27 const volatile Foo * CVFooP = &F; 33 f<Foo*>(FooP); in main() 35 f<Foo __unaligned *>(UFooP); in main() [all …]
|
/external/llvm-project/llvm/test/Transforms/PGOProfile/ |
D | indirect_call_promotion_byval.ll | 10 %struct.Foo.1 = type { i32 } 11 %struct.Foo.2 = type { i32 } 13 @foo = common global i32 (%struct.Foo.2*)* null, align 8 15 define i32 @func4(%struct.Foo.1* byval(%struct.Foo.1) %p) { 17 %gep = getelementptr inbounds %struct.Foo.1, %struct.Foo.1* %p, i32 0, i32 0 22 define i32 @func5(%struct.Foo.1* byval(%struct.Foo.1) %p) { 24 %gep = getelementptr inbounds %struct.Foo.1, %struct.Foo.1* %p, i32 0, i32 0 29 define i32 @bar(%struct.Foo.2* %f2) { 31 %tmp = load i32 (%struct.Foo.2*)*, i32 (%struct.Foo.2*)** @foo, align 8 32 %call = call i32 %tmp(%struct.Foo.2* byval(%struct.Foo.2) %f2), !prof !1 [all …]
|
/external/eigen/test/ |
D | ctorleak.cpp | 5 struct Foo struct 11 Foo() in Foo() argument 15 if (Foo::object_count > Foo::object_limit) { std::cout << "\nThrow!\n"; throw Foo::Fail(); } in Foo() 18 ++Foo::object_count; in Foo() 21 ~Foo() in ~Foo() argument 24 --Foo::object_count; in ~Foo() 30 Index Foo::object_count = 0; argument 31 Index Foo::object_limit = 0; 38 typedef Matrix<Foo, Dynamic, Dynamic> MatrixX; in test_ctorleak() 39 typedef Matrix<Foo, Dynamic, 1> VectorX; in test_ctorleak() [all …]
|
/external/libchrome/base/containers/ |
D | unique_ptr_adapters_unittest.cc | 15 class Foo { class 17 Foo() { instance_count++; } in Foo() function in base::__anon59837e7d0111::Foo 18 ~Foo() { instance_count--; } in ~Foo() 22 int Foo::instance_count = 0; 25 std::set<std::unique_ptr<Foo>, UniquePtrComparator> set; in TEST() 26 Foo* foo1 = new Foo(); in TEST() 27 Foo* foo2 = new Foo(); in TEST() 28 Foo* foo3 = new Foo(); in TEST() 29 EXPECT_EQ(3, Foo::instance_count); in TEST() 47 EXPECT_EQ(2, Foo::instance_count); in TEST() [all …]
|
/external/guice/core/test/com/google/inject/ |
D | DuplicateBindingsTest.java | 45 private Provider<Foo> pFoo = Providers.<Foo>of(new FooImpl()); 46 private Class<? extends Provider<? extends Foo>> pclFoo = FooProvider.class; 47 private Class<? extends Foo> clFoo = FooImpl.class; 59 assertTrue(bindings.remove(Key.get(Foo.class, named("instance")))); in testDuplicateBindingsAreIgnored() 60 assertTrue(bindings.remove(Key.get(Foo.class, named("pInstance")))); in testDuplicateBindingsAreIgnored() 61 assertTrue(bindings.remove(Key.get(Foo.class, named("pKey")))); in testDuplicateBindingsAreIgnored() 62 assertTrue(bindings.remove(Key.get(Foo.class, named("linkedKey")))); in testDuplicateBindingsAreIgnored() 64 assertTrue(bindings.remove(Key.get(Foo.class, named("constructor")))); in testDuplicateBindingsAreIgnored() 66 assertTrue(bindings.remove(Key.get(Foo.class, named("providerMethod")))); in testDuplicateBindingsAreIgnored() 88 + Foo.class.getName() in testProviderMethodsFailIfInstancesDiffer() [all …]
|
/external/clang/test/SemaCXX/ |
D | constructor.cpp | 4 class Foo { class 5 Foo(); 6 (Foo)(float) { } 7 explicit Foo(int); // expected-note {{previous declaration is here}} 8 Foo(const Foo&); 10 ((Foo))(INT); // expected-error{{cannot be redeclared}} 12 …Foo(Foo foo, int i = 17, int j = 42); // expected-error{{copy constructor must pass its first argu… 14 static Foo(short, short); // expected-error{{constructor cannot be declared 'static'}} 15 virtual Foo(double); // expected-error{{constructor cannot be declared 'virtual'}} 16 Foo(long) const; // expected-error{{'const' qualifier is not allowed on a constructor}} [all …]
|
/external/llvm-project/clang/test/utils/update_cc_test_checks/Inputs/ |
D | basic-cplusplus.cpp.expected | 5 class Foo { 9 explicit Foo(int x); 10 ~Foo(); 13 // CHECK-NEXT: [[THIS_ADDR:%.*]] = alloca %class.Foo*, align 8 15 // CHECK-NEXT: store %class.Foo* [[THIS:%.*]], %class.Foo** [[THIS_ADDR]], align 8 17 // CHECK-NEXT: [[THIS1:%.*]] = load %class.Foo*, %class.Foo** [[THIS_ADDR]], align 8 19 // CHECK-NEXT: [[X:%.*]] = getelementptr inbounds [[CLASS_FOO:%.*]], %class.Foo* [[THIS1]], i32 … 32 // CHECK-NEXT: [[THIS_ADDR:%.*]] = alloca %class.Foo*, align 8 34 // CHECK-NEXT: store %class.Foo* [[THIS:%.*]], %class.Foo** [[THIS_ADDR]], align 8 36 // CHECK-NEXT: [[THIS1:%.*]] = load %class.Foo*, %class.Foo** [[THIS_ADDR]], align 8 [all …]
|
/external/clang/test/SemaTemplate/ |
D | ms-delayed-default-template-args.cpp | 7 struct Foo { T x; }; argument 9 template struct Foo<>; variable 15 struct Foo { struct 21 template struct nested::Foo<>; member in test_namespace::nested 27 struct Foo { struct 33 template struct Outer::Foo<>; member in test_inner_class_template::Outer 40 struct Foo { struct 43 template struct Foo<&g>; variable 50 struct Foo { struct 61 struct Foo { struct [all …]
|
/external/llvm-project/clang/test/SemaTemplate/ |
D | ms-delayed-default-template-args.cpp | 7 struct Foo { T x; }; argument 9 template struct Foo<>; variable 15 struct Foo { struct 21 template struct nested::Foo<>; member in test_namespace::nested 27 struct Foo { struct 33 template struct Outer::Foo<>; member in test_inner_class_template::Outer 40 struct Foo { struct 43 template struct Foo<&g>; variable 50 struct Foo { struct 59 struct Foo { struct [all …]
|