Searched refs:counter (Results 1 - 25 of 303) sorted by relevance

1234567891011>>

/haiku-buildtools/gcc/gcc/testsuite/gcc.dg/pch/
H A Dstatic-1.c4 static int counter; local
5 return counter++;
H A Dstatic-2.c4 static int counter; local
5 return counter++;
H A Dcounter-3.hs4 #define counter __COUNTER__
H A Dcounter-1.hs5 #define counter __COUNTER__
/haiku-buildtools/gcc/gcc/testsuite/gcc.dg/gomp/appendix-a/
H A Da.22.1.c4 int counter = 0; variable
5 #pragma omp threadprivate(counter)
9 counter++;
10 return (counter);
H A Da.22.2.c7 static int counter = 0; local
8 #pragma omp threadprivate(counter)
9 counter++;
10 return (counter);
/haiku-buildtools/gcc/gcc/testsuite/g++.dg/cpp0x/
H A Dinitlist90.C6 struct counter struct
10 counter() { ++n; } function in struct:counter
11 counter(const counter&) { ++n; } argument
12 ~counter() { --n; }
15 int counter::n = 0;
19 X () { if (counter::n > 1) throw 1; }
21 counter c;
32 if ( counter::n != 0 )
/haiku-buildtools/gcc/gcc/testsuite/g++.old-deja/g++.mike/
H A Dp8269.C8 static char* const counter; member in class:Foo_Bar
11 char_ptr Foo_Bar::counter = 0; member in class:Foo_Bar
H A Dp4667.C4 int counter = 0; variable
10 A() { a = counter++; }
14 B() { b = counter++; }
18 C() { c = counter++; }
/haiku-buildtools/gcc/gcc/testsuite/gcc.dg/cpp/
H A Dcounter-1.c8 #define counter __COUNTER__ macro
14 #if counter != 1
15 #error counter != 1
/haiku-buildtools/gcc/libvtv/testsuite/libvtv.cc/
H A Dtemplate-list2.cc12 { counter = 1;}
16 counter--;
17 assert(counter == 0);
21 static int counter; member in class:Subscriptor
24 int Subscriptor::counter; member in class:Subscriptor
/haiku-buildtools/gcc/gcc/testsuite/gcc.c-torture/execute/
H A D20000224-1.c8 int counter = 0; local
10 while (loop_1 > counter) {
13 counter++;
/haiku-buildtools/gcc/libstdc++-v3/testsuite/20_util/allocator_traits/members/
H A Dconstruct.cc26 static int counter; member in struct:X
28 X(const X&) { ++counter; }
29 explicit X(int) { ++counter; }
30 X(int, int) { ++counter; }
31 X(int, int, int) { ++counter; }
34 int X::counter = 0; member in class:X
41 fake_allocator() : counter() {}
43 int counter; member in struct:fake_allocator
49 void construct(T* p) { ++counter; }
50 void construct(T* p, int, int) { ++counter; }
[all...]
/haiku-buildtools/gcc/libstdc++-v3/testsuite/20_util/bind/
H A Dref2.cc33 int counter = 0; local
34 std::bind(&inc, _1)(counter);
35 VERIFY(counter == 1 );
36 std::bind(&inc, std::ref(counter))();
37 VERIFY(counter == 2 );
52 int counter = 0; local
53 std::bind(Inc(), _1)(counter);
54 VERIFY(counter == 1 );
55 std::bind(&Inc::f, Inc(), std::ref(counter))();
56 VERIFY(counter
[all...]
/haiku-buildtools/gcc/gcc/testsuite/gfortran.dg/coarray/
H A Dcosubscript_1.f9021 integer :: dim3_max, counter
40 counter = 0
42 counter = counter+1
43 if (counter /= scalar[i,j,k]) call abort()
49 counter = 0
53 counter = counter+1
54 if (counter /= scalar[i,j,k]) then
56 print * , "[", i,",",j,",",k,"] = ",scalar[i,j,k],"/=",counter
[all...]
/haiku-buildtools/gcc/gcc/testsuite/objc.dg/
H A Dforeach-4.m66 /* We keep how many objects we served in the state->state counter. So the next batch
92 int test_variable, counter, i;
131 counter = 0;
135 counter++;
138 if (counter != 200)
141 printf ("Counter was %d (should be 200)\n", counter);
144 counter = 0;
148 counter++;
151 if (counter != 200)
154 printf ("Counter was %d (should be 200)\n", counter);
[all...]
H A Dforeach-5.m64 /* We keep how many objects we served in the state->state counter. So the next batch
90 int test_variable, counter, i;
129 counter = 0;
133 counter++;
136 if (counter != 200)
139 printf ("Counter was %d (should be 200)\n", counter);
142 counter = 0;
146 counter++;
149 if (counter != 200)
152 printf ("Counter was %d (should be 200)\n", counter);
[all...]
/haiku-buildtools/gcc/libstdc++-v3/testsuite/22_locale/locale/global_locale_objects/
H A D3.cc26 // Static counter for use in checking ctors/dtors.
27 static std::size_t counter; variable
33 surf(size_t refs = 0): std::locale::facet(refs) { ++counter; }
34 ~surf() { --counter; }
53 VERIFY( counter == 0 );
56 VERIFY( counter == 1 );
60 VERIFY( counter == 1 );
65 VERIFY( counter == 1 );
68 VERIFY( counter == 1 );
71 VERIFY( counter
[all...]
/haiku-buildtools/gcc/gcc/testsuite/gcc.dg/debug/dwarf2/
H A Datomic.c6 _Atomic(int) counter; member in struct:Atomics
/haiku-buildtools/gcc/gcc/
H A Dstatistics.c43 /* Statistics entry. A integer counter associated to a string ID
65 /* Hash a statistic counter by its string ID. */
126 /* Helper for statistics_fini_pass. Print the counter difference
133 statistics_counter_t *counter = *slot; local
134 unsigned HOST_WIDE_INT count = counter->count - counter->prev_dumped_count;
137 if (counter->histogram_p)
139 counter->id, counter->val, count);
142 counter
154 statistics_counter_t *counter = *slot; local
185 statistics_counter_t *counter = *slot; local
222 statistics_counter_t *counter = *slot; local
294 statistics_counter_t **counter; local
318 statistics_counter_t *counter; local
352 statistics_counter_t *counter; local
[all...]
/haiku-buildtools/gcc/gcc/testsuite/g++.dg/ext/
H A Dcleanup-4.C8 static int counter; variable
13 counter += *p;
36 if (counter != 0 + 1 + 2 + 3 + 4 + 5 + 6)
/haiku-buildtools/gcc/gcc/testsuite/g++.old-deja/g++.other/
H A Dsingleton.C20 if ( counter++ == 0 ) throw "just for the heck of it";
26 static int counter; member in class:singleton
29 int singleton::counter; member in class:singleton
/haiku-buildtools/gcc/gcc/testsuite/gcc.dg/
H A Dcleanup-4.c8 static int counter; variable
13 counter += *p;
36 if (counter != 0 + 1 + 2 + 3 + 4 + 5 + 6)
/haiku-buildtools/gcc/libstdc++-v3/testsuite/22_locale/facet/
H A D2.cc32 // Static counter for use in checking ctors/dtors.
33 static std::size_t counter; variable
39 surf(size_t refs = 0): std::locale::facet(refs) { ++counter; }
40 ~surf() { --counter; }
53 VERIFY( counter == 0 );
56 VERIFY( counter == 1 );
58 VERIFY( counter == 0 );
61 VERIFY( counter == 0 );
65 VERIFY( counter == 1 );
67 VERIFY( counter
[all...]
/haiku-buildtools/gcc/libstdc++-v3/testsuite/experimental/optional/assignment/
H A D5.cc24 int counter = 0; variable
28 mixin_counter() { ++counter; }
29 mixin_counter(mixin_counter const&) { ++counter; }
30 ~mixin_counter() { --counter; }
65 VERIFY( counter == 0 );

Completed in 274 milliseconds

1234567891011>>