Home
last modified time | relevance | path

Searched refs:Foo (Results 1 – 25 of 614) sorted by relevance

12345678910>>...25

/external/clang/test/Preprocessor/
Dmacro_with_initializer_list.cpp11 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/guava/guava-tests/test/com/google/common/collect/
DWellBehavedMapTest.java29 enum Foo { enum in WellBehavedMapTest
34 WellBehavedMap<Foo, Integer> map = WellBehavedMap.wrap( in testEntrySet_contain()
35 new EnumMap<Foo, Integer>(Foo.class)); in testEntrySet_contain()
36 map.putAll(ImmutableMap.of(Foo.X, 1, Foo.Y, 2, Foo.Z, 3)); in testEntrySet_contain()
39 assertTrue(map.entrySet().contains(Maps.immutableEntry(Foo.X, 1))); in testEntrySet_contain()
40 assertTrue(map.entrySet().contains(Maps.immutableEntry(Foo.Y, new Integer(2)))); in testEntrySet_contain()
43 assertFalse(map.entrySet().contains(Maps.immutableEntry(Foo.X, 5))); in testEntrySet_contain()
46 assertFalse(map.entrySet().contains(Maps.immutableEntry(Foo.T, 0))); in testEntrySet_contain()
50 WellBehavedMap<Foo, Integer> map = WellBehavedMap.wrap( in testEntry_setValue()
51 new EnumMap<Foo, Integer>(Foo.class)); in testEntry_setValue()
[all …]
/external/chromium_org/base/
Dobserver_list_unittest.cc20 class Foo { class
23 virtual ~Foo() {} in ~Foo()
26 class Adder : public Foo {
39 class Disrupter : public Foo {
41 Disrupter(ObserverList<Foo>* list, Foo* doomed) in Disrupter()
51 ObserverList<Foo>* list_;
52 Foo* doomed_;
55 class ThreadSafeDisrupter : public Foo {
57 ThreadSafeDisrupter(ObserverListThreadSafe<Foo>* list, Foo* doomed) in ThreadSafeDisrupter()
67 ObserverListThreadSafe<Foo>* list_;
[all …]
Dtask_runner_util_unittest.cc31 struct Foo { struct
32 ~Foo() { in ~Foo() argument
37 scoped_ptr<Foo> CreateFoo() { in CreateFoo()
38 return scoped_ptr<Foo>(new Foo); in CreateFoo()
41 void ExpectFoo(scoped_ptr<Foo> foo) { in ExpectFoo()
43 scoped_ptr<Foo> local_foo(foo.Pass()); in ExpectFoo()
49 void operator()(Foo* foo) const { in operator ()()
55 scoped_ptr_malloc<Foo, FreeFooFunctor> CreateScopedFoo() { in CreateScopedFoo()
56 return scoped_ptr_malloc<Foo, FreeFooFunctor>(new Foo); in CreateScopedFoo()
59 void ExpectScopedFoo(scoped_ptr_malloc<Foo, FreeFooFunctor> foo) { in ExpectScopedFoo() argument
[all …]
/external/chromium/base/
Dobserver_list_unittest.cc20 class Foo { class
23 virtual ~Foo() {} in ~Foo()
26 class Adder : public Foo {
38 class Disrupter : public Foo {
40 Disrupter(ObserverList<Foo>* list, Foo* doomed) in Disrupter()
47 ObserverList<Foo>* list_;
48 Foo* doomed_;
51 class ThreadSafeDisrupter : public Foo {
53 ThreadSafeDisrupter(ObserverListThreadSafe<Foo>* list, Foo* doomed) in ThreadSafeDisrupter()
60 ObserverListThreadSafe<Foo>* list_;
[all …]
/external/clang/test/CodeGen/
Dms-inline-asm.cpp6 struct Foo { struct
17 Foo::ptr = (int *)0xDEADBEEF; in t1() argument
18 Foo::Bar::ptr = (int *)0xDEADBEEF; in t1()
19 __asm mov eax, Foo ::ptr in t1()
20 __asm mov eax, Foo :: Bar :: ptr in t1()
21 __asm mov eax, [Foo:: ptr] in t1()
22 __asm mov eax, dword ptr [Foo :: ptr] in t1()
23 __asm mov eax, dword ptr [Foo :: ptr] in t1()
35 __asm mov eax, offset Foo::ptr in t2()
36 __asm mov eax, offset Foo::Bar::ptr in t2()
[all …]
/external/clang/test/SemaCXX/
Dconstructor.cpp4 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}}
12Foo(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 …]
Dwarn-sign-conversion.cpp11 template <typename T> struct Foo { struct
25 int c1 = 1 ? i : Foo<bool>::C; in doit_anonymous()
26 int c2 = 1 ? Foo<bool>::C : i; in doit_anonymous()
28 int d1a = 1 ? i : Foo<bool>::D; // expected-warning {{test1::Foo<bool>::<anonymous enum at }} in doit_anonymous() argument
29 int d1b = 1 ? i : Foo<bool>::D; // expected-warning {{warn-sign-conversion.cpp:13:5>' to 'int'}} in doit_anonymous()
30 …int d2a = 1 ? Foo<bool>::D : i; // expected-warning {{operand of ? changes signedness: 'test1::Foo… in doit_anonymous()
31 int d2b = 1 ? Foo<bool>::D : i; // expected-warning {{warn-sign-conversion.cpp:13:5>' to 'int'}} in doit_anonymous()
32 …int d3a = 1 ? B : Foo<bool>::D; // expected-warning {{operand of ? changes signedness: 'test1::Foo… in doit_anonymous()
33 int d3b = 1 ? B : Foo<bool>::D; // expected-warning {{warn-sign-conversion.cpp:13:5>' to 'int'}} in doit_anonymous()
34 …int d4a = 1 ? Foo<bool>::D : B; // expected-warning {{operand of ? changes signedness: 'test1::Foo… in doit_anonymous()
[all …]
Dwarn-thread-safety-analysis.cpp524 LateFoo Foo; member in LateBar
571 BarA.Foo.a = 2; // \ in late_bad_2()
579 BarA.Foo.mu.Lock(); in late_bad_3()
583 BarA.Foo.mu.Unlock(); in late_bad_3()
588 BarA.Foo.mu.Lock(); in late_bad_4()
592 BarA.Foo.mu.Unlock(); in late_bad_4()
890 class Foo { class
895 int Foo::method1(int i) { in method1()
911 Foo a; in main()
927 class Foo { class
[all …]
Dzero-length-arrays.cpp5 class Foo { class
6 ~Foo();
7 Foo(const Foo&);
9 Foo(int);
14 Foo foos[0];
15 Foo foos2[0][2];
16 Foo foos3[2][0];
/external/robolectric/src/test/java/com/xtremelabs/robolectric/bytecode/
DShadowWranglerTest.java37 Foo foo = new Foo(name); in testConstructorInvocation_WithDefaultConstructorAndNoConstructorDelegateOnShadowClass()
45 Foo foo = new Foo(name); in testConstructorInvocation()
54 Foo foo = new Foo(name); in testRealObjectAnnotatedFieldsAreSetBeforeConstructorIsCalled()
66 Foo foo = new Foo(name); in testMethodDelegation()
74 Foo foo1 = new Foo(name); in testEqualsMethodDelegation()
75 Foo foo2 = new Foo(name); in testEqualsMethodDelegation()
83 Foo foo = new Foo(name); in testHashCodeMethodDelegation()
91 Foo foo = new Foo(name); in testToStringMethodDelegation()
126 Foo foo = new Foo(null); in shouldRemoveNoiseFromStackTraces()
144 assertThat(stackTrace, containsString(Foo.class.getName() + ".getName(")); in shouldRemoveNoiseFromStackTraces()
[all …]
/external/sfntly/cpp/src/test/
Dsmart_pointer_test.cc24 class Foo : public RefCounted<Foo> { class
33 Ptr<Foo> p1; in TestSmartPointer()
34 p1 = new Foo(); in TestSmartPointer()
36 EXPECT_EQ(size_t(1), RefCounted<Foo>::object_counter_); in TestSmartPointer()
38 Ptr<Foo> p2; in TestSmartPointer()
42 EXPECT_EQ(size_t(1), RefCounted<Foo>::object_counter_); in TestSmartPointer()
44 Ptr<Foo> p3; in TestSmartPointer()
49 EXPECT_EQ(size_t(1), RefCounted<Foo>::object_counter_); in TestSmartPointer()
51 p2 = new Foo(); in TestSmartPointer()
55 EXPECT_EQ(size_t(2), RefCounted<Foo>::object_counter_); in TestSmartPointer()
[all …]
/external/chromium_org/third_party/sfntly/cpp/src/test/
Dsmart_pointer_test.cc24 class Foo : public RefCounted<Foo> { class
33 Ptr<Foo> p1; in TestSmartPointer()
34 p1 = new Foo(); in TestSmartPointer()
36 EXPECT_EQ(size_t(1), RefCounted<Foo>::object_counter_); in TestSmartPointer()
38 Ptr<Foo> p2; in TestSmartPointer()
42 EXPECT_EQ(size_t(1), RefCounted<Foo>::object_counter_); in TestSmartPointer()
44 Ptr<Foo> p3; in TestSmartPointer()
49 EXPECT_EQ(size_t(1), RefCounted<Foo>::object_counter_); in TestSmartPointer()
51 p2 = new Foo(); in TestSmartPointer()
55 EXPECT_EQ(size_t(2), RefCounted<Foo>::object_counter_); in TestSmartPointer()
[all …]
/external/clang/test/Index/
Dcomplete-memfunc-cvquals.cpp3 struct Foo { struct
17 void text(Foo f, Foo *fp, const Foo &fc, const Foo *fcp, in text()
18 smart_ptr<Foo> sf, const smart_ptr<Foo> &sfc, Foo volatile *fvp) { in text()
28 void Foo::bar() { in bar()
32 void Foo::baz() const { in baz()
36 void Foo::bingo() volatile { in bingo()
/external/clang/test/CodeGenObjC/
Dpredefined-expr.m3 // CHECK: @"__func__.-[Foo instanceTest1]" = private unnamed_addr constant [21 x i8] c"-[Foo instan…
4 // CHECK: @"__func__.-[Foo instanceTest2:]" = private unnamed_addr constant [22 x i8] c"-[Foo insta…
5 // CHECK: @"__func__.-[Foo instanceTest3:withB:]" = private unnamed_addr constant [28 x i8] c"-[Foo
6 // CHECK: @"__func__.-[Foo instanceTest4]" = private unnamed_addr constant [21 x i8] c"-[Foo instan…
7 // CHECK: @"__func__.+[Foo classTest1]" = private unnamed_addr constant [18 x i8] c"+[Foo classTest…
8 // CHECK: @"__func__.+[Foo classTest2:]" = private unnamed_addr constant [19 x i8] c"+[Foo classTes…
9 // CHECK: @"__func__.+[Foo classTest3:withB:]" = private unnamed_addr constant [25 x i8] c"+[Foo cl…
10 // CHECK: @"__func__.+[Foo classTest4]" = private unnamed_addr constant [18 x i8] c"+[Foo classTest…
11 // CHECK: @"__func__.-[Foo(Category) instanceTestWithCategory]" = private unnamed_addr constant [42…
12 // CHECK: @"__func__.+[Foo(Category) classTestWithCategory]" = private unnamed_addr constant [39 x …
[all …]
/external/chromium_org/v8/test/mjsunit/bugs/
Dbug-222.js28 function Foo(a, b) { } class
29 Foo();
30 var oldArgs = Foo.arguments;
31 Foo();
32 var newArgs = Foo.arguments
37 Foo.arguments = oldArgs;
38 assertEquals(Foo.arguments, newArgs);
41 assertFalse(delete Foo.arguments);
42 assertEquals(Foo.arguments, newArgs);
/external/v8/test/mjsunit/bugs/
Dbug-222.js28 function Foo(a, b) { } class
29 Foo();
30 var oldArgs = Foo.arguments;
31 Foo();
32 var newArgs = Foo.arguments
37 Foo.arguments = oldArgs;
38 assertEquals(Foo.arguments, newArgs);
41 assertFalse(delete Foo.arguments);
42 assertEquals(Foo.arguments, newArgs);
/external/llvm/unittests/Transforms/Utils/
DSpecialCaseList.cpp70 Function *Foo = makeFunction("foo", M); in TEST_F() local
74 EXPECT_TRUE(SCL->isIn(*Foo)); in TEST_F()
78 EXPECT_FALSE(SCL->isIn(*Foo)); in TEST_F()
83 EXPECT_TRUE(SCL->isIn(*Foo)); in TEST_F()
87 EXPECT_TRUE(SCL->isIn(*Foo, "functional")); in TEST_F()
89 EXPECT_TRUE(SCL->findCategory(*Foo, Category)); in TEST_F()
96 GlobalVariable *Foo = makeGlobal("foo", "t1", M); in TEST_F() local
100 EXPECT_TRUE(SCL->isIn(*Foo)); in TEST_F()
102 EXPECT_FALSE(SCL->isIn(*Foo, "init")); in TEST_F()
106 EXPECT_FALSE(SCL->isIn(*Foo)); in TEST_F()
[all …]
/external/clang/test/ARCMT/
Dassign-prop-with-arc-runtime.m17 @interface Foo : NSObject { interface
18 Foo *x, *w, *q1, *q2;
24 Foo *assign_plus1;
26 @property (readonly) Foo *x;
27 @property (assign) Foo *w;
28 @property Foo *q1, *q2;
34 @property (readonly) Foo *assign_plus1;
35 @property (readonly) Foo *assign_plus2;
36 @property (readonly) Foo *assign_plus3;
38 @property (assign) Foo *no_user_ivar1;
[all …]
Dassign-prop-with-arc-runtime.m.result17 @interface Foo : NSObject {
18 Foo *__weak x, *__weak w, *__weak q1, *__weak q2;
24 Foo *assign_plus1;
26 @property (weak, readonly) Foo *x;
27 @property (weak) Foo *w;
28 @property (weak) Foo *q1, *q2;
34 @property (readonly) Foo *assign_plus1;
35 @property (readonly) Foo *assign_plus2;
36 @property (readonly) Foo *assign_plus3;
38 @property (weak) Foo *no_user_ivar1;
[all …]
/external/clang/test/CodeGenCXX/
Dcopy-initialization.cpp3 struct Foo { struct
4 Foo();
5 Foo(const Foo&);
10 operator const Foo&() const;
13 void f(Foo);
16 void g(Foo foo) { in g()
23 f(Foo()); in g()
Dcxx0x-delegating-ctors.cpp81 class Foo : public virtual Base { class
83 Foo();
84 Foo(const void * inVoid);
85 virtual ~Foo() {} in ~Foo()
96 Foo::Foo() : Foo(__null) { other(); } in Foo() function in PR14588::Foo
97 Foo::Foo(const void *inVoid) { in Foo() function in PR14588::Foo
/external/llvm/test/Analysis/TypeBasedAliasAnalysis/
Dplacement-tbaa.ll5 ; struct Foo { long i; };
8 ; Foo *f = new Foo;
13 ; f = new (f) Foo;
23 %struct.Foo = type { i64 }
29 %f = alloca %struct.Foo*, align 8
34 %0 = bitcast i8* %call to %struct.Foo*
35 store %struct.Foo* %0, %struct.Foo** %f, align 8, !tbaa !3
36 %1 = load %struct.Foo** %f, align 8, !tbaa !3
37 %i = getelementptr inbounds %struct.Foo* %1, i32 0, i32 0
49 %4 = load %struct.Foo** %f, align 8, !tbaa !3
[all …]
/external/clang/test/SemaObjC/
Darc-unsafe-assigns.m4 @interface Foo { interface
17 @implementation Foo implementation
24 self.unsafe_prop = [Foo new]; // expected-warning {{assigning retained object to unsafe property}}
25 …self->unsafe_ivar = [Foo new]; // expected-warning {{assigning retained object to unsafe_unretaine…
26 …self.unsafe_prop = [[Foo alloc] init]; // expected-warning {{assigning retained object to unsafe p…
27 …self->unsafe_ivar = [[Foo alloc] init]; // expected-warning {{assigning retained object to unsafe_…
30 unsafe_var = [Foo new]; // expected-warning {{assigning retained object to unsafe_unretained}}
31 …unsafe_var = [[Foo alloc] init]; // expected-warning {{assigning retained object to unsafe_unretai…
35 void bar(Foo *f) {
36 f.unsafe_prop = [Foo new]; // expected-warning {{assigning retained object to unsafe property}}
[all …]
/external/clang/test/SemaTemplate/
Dinject-templated-friend-post.cpp20 typedef struct Foo {} Foo; typedef
22 std_ostream& operator << (std_ostream&, const Streamer<Foo>&);
24 void test(const Streamer<Foo>& foo) in test()
46 std_ostream& operator << (std_ostream&, const Streamer<Foo>&);
50 template struct Streamer<Foo>;
54 std_ostream& operator << (std_ostream& o, const Streamer<Foo>&) // expected-note{{is here}} in operator <<() argument
62 void Streamer<Foo>::operator () (std_ostream& o) const // expected-note{{requested here}} in operator ()()
69 Foo foo; in main()

12345678910>>...25