代码搜索:Local
找到约 10,000 项符合「Local」的源代码
代码结果 10,000
www.eeworm.com/read/470693/1456595
c local1.c
// { dg-options "-O" }
struct Outer {
struct Inner { virtual bool f() = 0; };
void g(Inner &) const;
};
inline void h(const Outer &o)
{
struct Local : public Outer::Inner {
virtual bool f
www.eeworm.com/read/470693/1456794
c local3.c
template
void f(const T&)
{
struct B {
void g (T);
};
B b;
};
void g()
{
f(42);
}
www.eeworm.com/read/470693/1456840
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/470693/1457136
c local3.c
// Bug: g++ lies about DECL_CONTEXT, so the backend thinks B::f is not
// function-local.
// Contributed by Jason Merrill
// excess errors test
struct A {
virtual void f () = 0;
www.eeworm.com/read/470693/1457155
c local4.c
// 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/470693/1457159
c local2.c
// Build don't link:
// Special g++ Options: -O2
void f ()
{
struct Init {
Init () {
}
};
}
www.eeworm.com/read/470693/1457311
c local1.c
// Build don't run:
struct Outer {
virtual ~Outer() {}
};
int
main()
{
{ struct Inner : virtual public Outer {} inner; }
{ struct Inner : virtual public Outer {} inner; }
}
www.eeworm.com/read/470693/1457677
c local7.c
// Build don't link:
template inline STRUCT *
setback(MEMBER *bp, MEMBER STRUCT::*offset)
{
if(!bp) return 0;
union { int i; MEMBER STRUCT::*of; } u;
www.eeworm.com/read/470693/1457687
c local3.c
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/470693/1457729
c local4.c
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) + s.g(t);
}
int