代码搜索:declared
找到约 3,220 项符合「declared」的源代码
代码结果 3,220
www.eeworm.com/read/162614/5519942
c typedef5.c
// { dg-do assemble }
// by Alexandre Oliva
typedef int t;
typedef t* u;
typedef u v;
typedef v* (*w)(t);
typedef int t;
typedef t* u;
typedef u v;
typedef v* (*w)(t const);
www.eeworm.com/read/162614/5520888
c friend34.c
// { dg-do assemble }
// This testcase won't fail if class ::foo is forward-declared in the
// global namespace, nor if class bar is not a template class.
template
class bar {
p
www.eeworm.com/read/162614/5520988
c ns11.c
// { dg-do assemble }
// Build don't link
// Check [namespace.memdef]/2
namespace A{
void f(int);
void f(int,int);
int i; // { dg-error "" } .*
}
void A::f(){} // { dg-er
www.eeworm.com/read/162614/5521000
c template13.c
// { dg-do compile }
// Templates defined outside must be declared inside
namespace bar
{
// trick it to provide some prior declaration
template
void foo(); // { dg-error "definition" }
www.eeworm.com/read/162614/5521447
c arm3.c
// { dg-do assemble }
// GROUPS passed initialization
// ARM $11.4: A function first declared in a friend decl is equivalent
// to an extern decl, so the below is illegal.
class X {
friend g()
www.eeworm.com/read/162614/5522096
c 900210_10.c
// { dg-do assemble }
// g++ 1.36.1 bug 900210_10
// g++ allows operator[] to be declared as a static member function.
// This is illegal.
// Cfront 2.0 passes this test.
// keywords: operator[],
www.eeworm.com/read/162614/5522263
c scoping14.c
// { dg-do assemble }
// [class.scope0]: The scope of a name declared in a class consists
// ... also of all ... default arguments ... in that class ....
struct A {
void f (int A::* = &A::i);
i
www.eeworm.com/read/162614/5522757
mm proto-lossage-5.mm
/* Do not lose references to forward-declared protocols. */
/* { dg-do compile } */
@class MyBaseClass;
@class MyClassThatFails;
@protocol _MyProtocol;
@interface MyClassThatFails
- (MyBaseClass
www.eeworm.com/read/162614/5522930
m proto-lossage-5.m
/* Do not lose references to forward-declared protocols. */
/* { dg-do compile } */
@class MyBaseClass;
@class MyClassThatFails;
@protocol _MyProtocol;
@interface MyClassThatFails
- (MyBaseClass
www.eeworm.com/read/162614/5525451
ada c35102a.ada
-- C35102A.ADA
-- Grant of Unlimited Rights
--
-- Under contracts F33600-87-D-0337, F33600-84-D-0280, MDA903-79-C-0687,
-- F08630-91-C-0015, and DCA100-97-D-0025,