代码搜索:explicit
找到约 10,000 项符合「explicit」的源代码
代码结果 10,000
www.eeworm.com/read/233448/4674159
c explicit24.c
// { dg-do assemble }
// GROUPS passed templates
template
int foo(T t);
int foo(int i) { return 0; } // { dg-error "" } missing template
www.eeworm.com/read/233448/4674169
c explicit13.c
// { dg-do link }
// { dg-options "-ansi -pedantic-errors -w" }
// GROUPS passed templates
template
struct S
{
template
void foo(T t);
template
void bar(T t)
www.eeworm.com/read/233448/4674171
c explicit75.c
// { dg-do assemble }
// Test for not complaining about mismatches during unification.
template void f();
template void f();
extern void g(double);
void h ()
{
www.eeworm.com/read/233448/4674179
c explicit57.c
// { dg-do run }
extern "C" void abort ();
int a = 0;
template void f ();
template void g ()
{
if (a)
abort ();
}
template void g ()
{
}
template clas
www.eeworm.com/read/233448/4674186
c explicit16.c
// { dg-do assemble }
// GROUPS passed templates
template
class Array;
template
class ArraySectionInfo {
public:
enum { rank = 0 };
};
template
class SliceInfo
www.eeworm.com/read/233448/4674195
c explicit20.c
// { dg-do assemble }
// GROUPS passed templates
template
T foo(T t);
template
int foo(char c); // { dg-error "" } does not match any template declaration
www.eeworm.com/read/233448/4674206
c explicit28.c
// { dg-do link }
// GROUPS passed templates
template
int foo(T t) { return 1; }
template
int foo(int i) { return 0; }
int main()
{
return (*((int (*)(int)) &foo))(3);
}
www.eeworm.com/read/233448/4674212
c explicit54.c
// { dg-do run }
extern "C" void abort ();
template inline int fact2 ();
template inline int fact ()
{
return a * fact2 ();
}
template inline int fact ()
{
return 1;
www.eeworm.com/read/233448/4674227
c explicit37.c
// { dg-do link }
// GROUPS passed templates
class ostream {};
template
class S;
template
void operator
www.eeworm.com/read/233448/4674260
c explicit19.c
// { dg-do link }
// { dg-options "-ansi -pedantic-errors -w" }
// GROUPS passed templates
template
int foo(T t);
template
int foo(int i) { return 0; }
int main()
{
return foo