update
From-SVN: r25491
This commit is contained in:
parent
2faa455b71
commit
4cfa922359
@ -6,7 +6,7 @@
|
||||
|
||||
// keywords: abort, incomplete types, reference types, formal parameters
|
||||
|
||||
struct s0;
|
||||
struct s0; // ERROR - forward declaration
|
||||
|
||||
void function (struct s0 &arg1, struct s0 &arg2)
|
||||
{
|
||||
|
@ -7,7 +7,7 @@
|
||||
|
||||
// keywords: friends, incomplete types, function members
|
||||
|
||||
struct A;
|
||||
struct A; // ERROR - forward declaration
|
||||
|
||||
struct B {
|
||||
friend void A::foo(); // ERROR - type A is incomplete
|
||||
|
@ -17,35 +17,35 @@ int i;
|
||||
|
||||
void *pv;
|
||||
volatile void *pvv;
|
||||
struct s;
|
||||
extern struct s es, *ps;
|
||||
extern volatile struct s evs, *pvs;
|
||||
struct s; // ERROR - forward declaration
|
||||
extern struct s es, *ps; // ERROR - defined here
|
||||
extern volatile struct s evs, *pvs; // ERROR - defined here
|
||||
|
||||
void pv_test ()
|
||||
{
|
||||
*pv; // ERROR - , XFAIL *-*-*
|
||||
(i ? *pv : *pv); // ERROR - , XFAIL *-*-*
|
||||
*pv, *pv; // ERROR - , XFAIL *-*-*
|
||||
*pv; // ERROR - invalid void
|
||||
(i ? *pv : *pv); // ERROR - invalid void
|
||||
*pv, *pv; // ERROR - invalid void
|
||||
|
||||
*pvv; // ERROR - , XFAIL *-*-*
|
||||
(i ? *pvv : *pvv); // ERROR - , XFAIL *-*-*
|
||||
*pvv, *pvv; // ERROR - , XFAIL *-*-*
|
||||
*pvv; // ERROR - invalid void
|
||||
(i ? *pvv : *pvv); // ERROR - invalid void
|
||||
*pvv, *pvv; // ERROR - invalid void
|
||||
|
||||
es; // ERROR - , XFAIL *-*-*
|
||||
(i ? es : es); // ERROR - , XFAIL *-*-*
|
||||
es, es; // ERROR - , XFAIL *-*-*
|
||||
es; // ERROR - incomplete
|
||||
(i ? es : es); // ERROR - undefined type
|
||||
es, es; // ERROR - incomplete
|
||||
|
||||
evs; // ERROR - , XFAIL *-*-*
|
||||
(i ? evs : evs); // ERROR - , XFAIL *-*-*
|
||||
evs, evs; // ERROR - , XFAIL *-*-*
|
||||
evs; // ERROR - incomplete
|
||||
(i ? evs : evs); // ERROR - undefined type
|
||||
evs, evs; // ERROR - incomplete
|
||||
|
||||
*ps; // ERROR - , XFAIL *-*-*
|
||||
(i ? *ps : *ps); // ERROR - , XFAIL *-*-*
|
||||
*ps, *ps; // ERROR - , XFAIL *-*-*
|
||||
*ps; // ERROR - undefined type
|
||||
(i ? *ps : *ps); // ERROR - undefined type
|
||||
*ps, *ps; // ERROR - undefined type
|
||||
|
||||
*pvs; // ERROR - , XFAIL *-*-*
|
||||
(i ? *pvs : *pvs); // ERROR - , XFAIL *-*-*
|
||||
*pvs, *pvs; // ERROR - , XFAIL *-*-*
|
||||
*pvs; // ERROR - undefined type
|
||||
(i ? *pvs : *pvs); // ERROR - undefined type
|
||||
*pvs, *pvs; // ERROR - undefined type
|
||||
}
|
||||
|
||||
int main () { return 0; }
|
||||
|
@ -11,15 +11,15 @@
|
||||
// keywords: inheritance, ambiguity resolution, members
|
||||
|
||||
struct base_0 {
|
||||
enum { base_member };
|
||||
enum { base_member }; // ERROR - candidate (26, 30)
|
||||
};
|
||||
|
||||
struct base_1 {
|
||||
int base_member;
|
||||
int base_member; // ERROR - candidate (26, 34)
|
||||
};
|
||||
|
||||
struct base_2 {
|
||||
int base_member ();
|
||||
int base_member (); // ERROR - candidate (30, 34)
|
||||
};
|
||||
|
||||
struct derived_0 : public base_0, public base_1 {
|
||||
|
@ -2,12 +2,12 @@
|
||||
//Based on a report by Bill Currie <bcurrie@tssc.co.nz>
|
||||
struct foo {
|
||||
protected:
|
||||
int x;
|
||||
int x; // ERROR - candidate
|
||||
};
|
||||
|
||||
struct bar {
|
||||
public:
|
||||
int x();
|
||||
int x(); // ERROR - candidate
|
||||
};
|
||||
|
||||
struct foobar: public foo, public bar {
|
||||
|
@ -4,13 +4,13 @@
|
||||
struct DIAGTYP {
|
||||
};
|
||||
struct DIAGTYP1 {
|
||||
struct DIAGTYP;
|
||||
struct DIAGTYP; // ERROR - forward declaration
|
||||
void bar() { new struct DIAGTYP; } // ERROR - undefined
|
||||
void foo() { new struct DIAGTYP1; }
|
||||
};
|
||||
|
||||
int main () {
|
||||
struct DIAGTYP;
|
||||
struct DIAGTYP; // ERROR - forward declaration
|
||||
struct DIAGTYP *lerror_desc;
|
||||
lerror_desc= new struct DIAGTYP; // ERROR - undefined
|
||||
}
|
||||
|
6
gcc/testsuite/g++.old-deja/g++.other/null3.C
Normal file
6
gcc/testsuite/g++.old-deja/g++.other/null3.C
Normal file
@ -0,0 +1,6 @@
|
||||
// Build don't link:
|
||||
|
||||
void x()
|
||||
{
|
||||
int* p = 1==0;
|
||||
}
|
@ -3,7 +3,7 @@
|
||||
template <class T, int i>
|
||||
struct K {
|
||||
void f();
|
||||
};
|
||||
}; // ERROR - forward declaration
|
||||
|
||||
template <class T>
|
||||
void
|
||||
|
@ -16,7 +16,7 @@ public:
|
||||
}
|
||||
};
|
||||
|
||||
class B : public A< B >
|
||||
class B : public A< B > // ERROR - forward declaration
|
||||
{
|
||||
public:
|
||||
typedef int myT;
|
||||
|
Loading…
Reference in New Issue
Block a user