OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
full:cast
(Results
1 - 25
of
3874
) sorted by null
1
2
3
4
5
6
7
8
9
10
11
>>
/external/chromium_org/third_party/sqlite/src/test/
cast.test
12
# focus of this file is testing the
CAST
operator.
14
# $Id:
cast
.test,v 1.10 2008/11/06 15:33:04 drh Exp $
19
# Only run these tests if the build includes the
CAST
operator
20
ifcapable !
cast
{
25
# Tests for the
CAST
( AS blob),
CAST
( AS text) and
CAST
( AS numeric) built-ins
28
do_test
cast
-1.1 {
31
do_test
cast
-1.2 {
34
do_test
cast
-1.3
[
all
...]
/external/llvm/test/Assembler/
2007-01-16-CrashOnBadCast2.ll
2
; RUN: not llvm-as %s -o /dev/null 2>&1 | grep "invalid
cast
opcode for
cast
from"
2007-01-16-CrashOnBadCast.ll
2
; RUN: not llvm-as %s -o /dev/null 2>&1 | grep "invalid
cast
opcode for
cast
from"
invalid_cast.ll
3
; CHECK: invalid
cast
opcode for
cast
from '<4 x i64>' to '<3 x i8>'
invalid_cast2.ll
3
; CHECK: invalid
cast
opcode for
cast
from '<4 x i64>' to 'i8'
ConstantExprFoldCast.ll
3
; RUN: llvm-as < %s | llvm-dis | not grep
cast
5
@A = global i32* bitcast (i8* null to i32*) ;
Cast
null -> fold
6
@B = global i32** bitcast (i32** @A to i32**) ;
Cast
to same type -> fold
8
@D = global i32* bitcast(float* bitcast (i32* @C to float*) to i32*) ;
cast
of
cast
ptr->ptr
/external/clang/test/PCH/
cxx-chain-function-template.cpp
9
T
cast
(U u) {
function
14
cast
<float>(1);
22
cast
<CXXRecordDecl>(1.0f);
28
cast
<CXXRecordDecl>(1.0f);
/external/clang/test/Sema/
cast-incomplete.c
9
(enum x)1; // expected-error {{
cast
to incomplete type}}
10
(struct y)a; // expected-error {{
cast
to incomplete type}}
11
(union z)b; // expected-error {{
cast
to incomplete type}}
12
(union z)1; // expected-error {{
cast
to incomplete type}}
warn-bad-function-cast.c
1
// RUN: %clang_cc1 %s -fsyntax-only -Wno-unused-value -Wbad-function-
cast
-triple x86_64-unknown-unknown -verify
36
(float)if1(); /* expected-warning {{
cast
from function call of type 'int' to non-matching type 'float'}} */
37
(double)if2(); /* expected-warning {{
cast
from function call of type 'char' to non-matching type 'double'}} */
38
(_Bool)if3(); /* expected-warning {{
cast
from function call of type 'long' to non-matching type '_Bool'}} */
39
(int)rf1(); /* expected-warning {{
cast
from function call of type 'float' to non-matching type 'int'}} */
40
(long)rf2(); /* expected-warning {{
cast
from function call of type 'double' to non-matching type 'long'}} */
41
(double)cf(); /* expected-warning {{
cast
from function call of type '_Complex double' to non-matching type 'double'}} */
42
(int)ef(); /* expected-warning {{
cast
from function call of type 'enum e' to non-matching type 'int'}} */
43
(int)bf(); /* expected-warning {{
cast
from function call of type '_Bool' to non-matching type 'int'}} */
44
(__SIZE_TYPE__)pf1(); /* expected-warning {{
cast
from function call of type 'char *' to non-matching type 'unsigned long'}} *
[
all
...]
heinous-extensions-off.c
6
asm("nop" : : "m"((int)(a))); // expected-error {{
cast
in a inline asm context requiring an l-value}}
8
asm("nop" : "=r"((unsigned)a)); // expected-error {{
cast
in a inline asm context requiring an l-value}}
heinous-extensions-on.c
6
asm("nop" : : "m"((int)(a))); // expected-warning {{
cast
in an inline asm context requiring an l-value}}
8
asm("nop" : "=r"((unsigned)a)); // expected-warning {{
cast
in an inline asm context requiring an l-value}}
rdr6094103-unordered-compare-promote.c
4
// There needs to be an implicit
cast
on x here.
cast-to-union.c
7
f((union u)x); // expected-warning {{
cast
to union type is a GNU extension}}
8
f((union u)&x); // expected-error {{
cast
to union type from type 'int *' not present in union}}
9
f((union u)2U); // expected-error {{
cast
to union type from type 'unsigned int' not present in union}}
12
union u w = (union u)2; // expected-warning {{
cast
to union type is a GNU extension}}
13
union u ww = (union u)1.0; // expected-error{{
cast
to union type from type 'double' not present in union}}
16
union u zz = (union u)i; // expected-error{{initializer element is not a compile-time constant}} expected-warning {{
cast
to union type is a GNU extension}}
/external/eigen/test/
mixingtypes.cpp
40
Mat_d md = mf.template
cast
<double>();
42
Mat_cd mcd = mcf.template
cast
<complex<double> >();
44
Vec_d vd = vf.template
cast
<double>();
46
Vec_cd vcd = vcf.template
cast
<complex<double> >();
63
VERIFY_IS_APPROX(vf * scf , vf.template
cast
<complex<float> >() * scf);
64
VERIFY_IS_APPROX(scd * vd, scd * vd.template
cast
<complex<double> >());
71
VERIFY_IS_APPROX(vcf.dot(vf), vcf.dot(vf.template
cast
<complex<float> >()));
74
VERIFY_IS_APPROX(vf.asDiagonal() * mcf, vf.template
cast
<complex<float> >().asDiagonal() * mcf);
75
VERIFY_IS_APPROX(vcd.asDiagonal() * md, vcd.asDiagonal() * md.template
cast
<complex<double> >());
76
VERIFY_IS_APPROX(mcf * vf.asDiagonal(), mcf * vf.template
cast
<complex<float> >().asDiagonal())
[
all
...]
/external/eigen/doc/snippets/
MatrixBase_cast.cpp
3
cout << md + mf.
cast
<double>() << endl;
/frameworks/compile/slang/tests/F_vector_cast/
stderr.txt.expect
3
vector_cast.rs:7:9: error: invalid vector
cast
4
vector_cast.rs:14:9: error: invalid vector
cast
5
vector_cast.rs:21:9: error: invalid vector
cast
6
vector_cast.rs:31:13: error: invalid vector
cast
/external/clang/test/CodeGenObjC/
message-arrays.m
4
// This should have an implicit
cast
13
// This should also get an implicit
cast
(for the vararg)
/external/llvm/test/Transforms/InstCombine/
bitcast-vec-uniform.ll
26
%
cast
= bitcast i64 -1 to <2 x float>
27
ret <2 x float> %
cast
35
%
cast
= bitcast i128 -1 to <2 x double>
36
ret <2 x double> %
cast
43
%
cast
= bitcast i32 -1 to <1 x float>
44
ret <1 x float> %
cast
51
%
cast
= bitcast <1 x i32 ><i32 -1> to float
52
ret float %
cast
59
%
cast
= bitcast <2 x i32 ><i32 -1, i32 -1> to double
60
ret double %
cast
[
all
...]
/external/clang/test/ARCMT/
nonobjc-to-objc-cast-2.m
31
return sref; // expected-error {{implicit conversion of C pointer type 'CFStringRef' (aka 'const struct __CFString *') to Objective-C pointer type 'id' requires a bridged
cast
}} \
39
NSString *str = (NSString *)cfstr; // expected-error {{
cast
of C pointer type 'CFStringRef' (aka 'const struct __CFString *') to Objective-C pointer type 'NSString *' requires a bridged
cast
}} \
42
void *vp = str; // expected-error {{requires a bridged
cast
}} expected-note {{use CFBridgingRetain call}} expected-note {{use __bridge}}
47
ref = [(CFStringRef)[s string] retain]; // expected-error {{
cast
of Objective-C pointer type 'id' to C pointer type 'CFStringRef' (aka 'const struct __CFString *') requires a bridged
cast
}} \
54
return (CFStringRef)[[[NSString alloc] init] autorelease]; // expected-error {{it is not safe to
cast
to 'CFStringRef' the result of 'autorelease' message; a __bridge
cast
may result in a pointer to a destroyed object and a __bridge_retained may leak the object}} \
55
// expected-note {{remove the
cast
and change return type of function to 'NSString *' to have the object automatically autoreleased}}
62
NSLog(@"%@", (CFStringRef)s); // expected-error {{
cast
of Objective-C pointer type 'NSString *' to C pointer type 'CFStringRef' (aka 'const struct __CFSt (…)
[
all
...]
/external/clang/test/SemaCXX/
reinterpret-fn-obj-pedantic.cpp
7
void *vp = reinterpret_cast<void*>(fp); // expected-warning {{
cast
between pointer-to-function and pointer-to-object is an extension}}
8
(void)reinterpret_cast<fnptr>(vp); // expected-warning {{
cast
between pointer-to-function and pointer-to-object is an extension}}
warn-bad-memaccess.cpp
30
// expected-note {{explicitly
cast
the pointer to silence this warning}}
33
// expected-note {{explicitly
cast
the pointer to silence this warning}}
37
// expected-note {{explicitly
cast
the pointer to silence this warning}}
40
// expected-note {{explicitly
cast
the pointer to silence this warning}}
43
// expected-note {{explicitly
cast
the pointer to silence this warning}}
46
// expected-note {{explicitly
cast
the pointer to silence this warning}}
49
// expected-note {{explicitly
cast
the pointer to silence this warning}}
52
// expected-note {{explicitly
cast
the pointer to silence this warning}}
56
// expected-note {{explicitly
cast
the pointer to silence this warning}}
59
// expected-note {{explicitly
cast
the pointer to silence this warning}
[
all
...]
/external/clang/test/SemaObjC/
selector-error.m
16
a = (char*)@selector(bar); // expected-error {{cannot type
cast
@selector expression}}
17
return (char*)@selector(bar); // expected-error {{cannot type
cast
@selector expression}}
arc-unbridged-cast.m
42
x = (id) unauditedString(); // expected-error {{requires a bridged
cast
}} expected-note {{use __bridge to}} expected-note {{use CFBridgingRelease call to}}
43
x = (id) (cond ? unauditedString() : (void*) 0); // expected-error {{requires a bridged
cast
}} expected-note {{use __bridge to}} expected-note {{use CFBridgingRelease call to}}
44
x = (id) (cond ? (void*) 0 : unauditedString()); // expected-error {{requires a bridged
cast
}} expected-note {{use __bridge to}} expected-note {{use CFBridgingRelease call to}}
45
x = (id) (cond ? (CFStringRef) @"help" : unauditedString()); // expected-error {{requires a bridged
cast
}} expected-note {{use __bridge to}} expected-note {{use CFBridgingRelease call to}}
47
x = (id) auditedCreateString(); // expected-error {{requires a bridged
cast
}} expected-note {{use CFBridgingRelease call to}}
48
x = (id) (cond ? auditedCreateString() : (void*) 0); // expected-error {{requires a bridged
cast
}} expected-note {{use CFBridgingRelease call to}}
49
x = (id) (cond ? (void*) 0 : auditedCreateString()); // expected-error {{requires a bridged
cast
}} expected-note {{use CFBridgingRelease call to}}
50
x = (id) (cond ? (CFStringRef) @"help" : auditedCreateString()); // expected-error {{requires a bridged
cast
}} expected-note {{use CFBridgingRelease call to}}
87
[taker takeConsumed: (CFStringRef) string]; // expected-error {{
cast
of Objective-C pointer type 'id' to C pointer type 'CFStringRef'}} expected-note {{use __bridge to}} expected-note {{use CFBridgingRetain call to}}
100
takeCFOrdinaryUnaudited((CFStringRef) string); // expected-error {{
cast
of Objective-C pointer type 'id' to C pointer type 'CFStringRef'}} expected-note {{use __bridge to (…)
[
all
...]
arc-non-pod-memaccess.m
25
// expected-note{{explicitly
cast
the pointer to silence this warning}}
27
// expected-note{{explicitly
cast
the pointer to silence this warning}}
29
// expected-note{{explicitly
cast
the pointer to silence this warning}}
33
// expected-note{{explicitly
cast
the pointer to silence this warning}}
35
// expected-note{{explicitly
cast
the pointer to silence this warning}}
37
// expected-note{{explicitly
cast
the pointer to silence this warning}}
41
// expected-note{{explicitly
cast
the pointer to silence this warning}}
43
// expected-note{{explicitly
cast
the pointer to silence this warning}}
45
// expected-note{{explicitly
cast
the pointer to silence this warning}}
49
// expected-note{{explicitly
cast
the pointer to silence this warning}
[
all
...]
/external/v8/test/cctest/
test-weakmaps.cc
40
Handle<JSWeakMap> weakmap(JSWeakMap::
cast
(*weakmap_obj));
43
ObjectHashTable* table = ObjectHashTable::
cast
(table_obj);
53
Handle<ObjectHashTable>(ObjectHashTable::
cast
(weakmap->table())),
54
Handle<JSObject>(JSObject::
cast
(*key)),
86
PutIntoWeakMap(weakmap, Handle<JSObject>(JSObject::
cast
(*key)), 23);
88
CHECK_EQ(1, ObjectHashTable::
cast
(weakmap->table())->NumberOfElements());
93
CHECK_EQ(1, ObjectHashTable::
cast
(weakmap->table())->NumberOfElements());
95
0, ObjectHashTable::
cast
(weakmap->table())->NumberOfDeletedElements());
111
CHECK_EQ(1, ObjectHashTable::
cast
(weakmap->table())->NumberOfElements());
113
0, ObjectHashTable::
cast
(weakmap->table())->NumberOfDeletedElements())
[
all
...]
Completed in 1388 milliseconds
1
2
3
4
5
6
7
8
9
10
11
>>