代码搜索:Local
找到约 10,000 项符合「Local」的源代码
代码结果 10,000
www.eeworm.com/read/162614/5519137
c local1.c
// PR c++/4286: We were crashing when trying to set up the class bindings in
// g(), because xref wanted the mangled name, which breaks inside a template.
// Of course, the offending code is actually
www.eeworm.com/read/162614/5519291
c local5.c
struct Attribute { };
template bool operator == (const Attribute &attr, const T &value);
enum {
anon = 123
};
void test(int foo)
{
if (foo == anon) ; /* { dg-bogus "anonymous type" }
www.eeworm.com/read/162614/5519643
c local3.c
// { dg-do run }
// Bug: g++ lies about DECL_CONTEXT, so the backend thinks B::f is not
// function-local.
// Contributed by Jason Merrill
struct A {
virtual void f () = 0;
};
www.eeworm.com/read/162614/5519662
c local4.c
// { dg-do run }
// Test that a local declaration of one of a global overload set works
int f () { return 0; }
int f (int);
int main ()
{
int f ();
return f ();
}
www.eeworm.com/read/162614/5519665
c local2.c
// { dg-do assemble }
// { dg-options "-O2" }
void f ()
{
struct Init {
Init () {
}
};
}
www.eeworm.com/read/162614/5519816
c local1.c
// { dg-do link }
struct Outer {
virtual ~Outer() {}
};
int
main()
{
{ struct Inner : virtual public Outer {} inner; }
{ struct Inner : virtual public Outer {} inner; }
}
www.eeworm.com/read/162614/5520185
c local7.c
// { dg-do assemble }
template inline STRUCT *
setback(MEMBER *bp, MEMBER STRUCT::*offset)
{
if(!bp) return 0;
union { int i; MEMBER STRUCT::*of; } u;
www.eeworm.com/read/162614/5520195
c local3.c
// { dg-do run }
extern "C" void abort();
template
void f(T)
{
int j;
j = 6;
struct S {
int i;
};
S s;
s.i = j;
if (s.i != 6)
abort();
}
int main()
{
f(7);
}
www.eeworm.com/read/162614/5520237
c local4.c
// { dg-do run }
extern "C" void abort();
template
struct S {};
S si;
template
int f(T t)
{
struct S {
int g(int i) { return i + 2; }
};
S s;
return s.g(t)
www.eeworm.com/read/162614/5520241
c local2.c
// { dg-do run }
extern "C" void abort();
template
void f(T)
{
struct S {
int i;
} s;
s.i = 3;
if (s.i != 3)
abort();
}
int main()
{
f(7);
}