代码搜索:explicit
找到约 10,000 项符合「explicit」的源代码
代码结果 10,000
www.eeworm.com/read/233448/4673856
c explicit33.c
// { dg-do assemble }
// GROUPS passed templates
template
void foo(T t);
template
void foo(int) {}
void foo(int) {}
www.eeworm.com/read/233448/4673864
c explicit76.c
// { dg-do assemble { xfail *-*-* } }
// Based on bug report by Simon A. Crase
struct foo {
template void bar();
};
template void foo::bar(); // { dg-bogus ""
www.eeworm.com/read/233448/4673873
c explicit52.c
// { dg-do run }
extern "C" void abort ();
template inline int fact ()
{
return a * fact ();
}
template inline int fact ()
{
return 1;
}
int main()
{
if (fact () != 6 |
www.eeworm.com/read/233448/4673879
c explicit5.c
// { dg-do assemble }
// GROUPS passed templates
template
void foo(T t) {}
template
struct S {};
template
void bar(T t)
{
void (*f)(S ) = &foo;
}
void ba
www.eeworm.com/read/233448/4673885
c explicit78.c
// { dg-do assemble }
template
struct A {
};
template
struct B {
operator A ();
operator B ();
};
template
void f(B);
template
vo
www.eeworm.com/read/233448/4673921
c explicit11.c
// { dg-do assemble }
// GROUPS passed templates
template
void foo(T t);
template
struct S {};
int main()
{
S si;
foo(si);
}
www.eeworm.com/read/233448/4673934
c explicit36.c
// { dg-do link }
// GROUPS passed templates
template
void foo(T);
class S {
friend void foo(int);
int i;
};
template
void foo(int)
{
S s;
s.i = 3;
}
int main()
{
foo(3
www.eeworm.com/read/233448/4673952
c explicit30.c
// { dg-do assemble }
// GROUPS passed templates
template
void foo(T, T*);
void bar()
{
double d;
(*((void (*)(int, double*)) (void (*)(int, int*)) &foo))(3, &d);
}
www.eeworm.com/read/233448/4673956
c explicit50.c
// { dg-do run }
extern "C" void abort ();
template int f ()
{
return sizeof(T);
}
int main ()
{
if (f () != sizeof(long)
|| f () != sizeof(char)
|| f ()
www.eeworm.com/read/233448/4673960
c explicit53.c
// { dg-do run }
extern "C" void abort ();
template inline int fact ();
template inline int fact ();
template inline int fact ()
{
return a * fact ();
}
template in