plateform stringclasses 1
value | repo_name stringclasses 2
values | name stringlengths 1 78 | ext stringclasses 2
values | path stringlengths 15 1.11k | size int64 1 8.55M | source_encoding stringclasses 11
values | md5 stringlengths 32 32 | text stringlengths 0 8.49M |
|---|---|---|---|---|---|---|---|---|
google | android | eb67 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.robertl/eb67.C | 186 | utf_8 | fda2b9a8051809962b59e6ca5f79964f | // { dg-do assemble }
/*
Check whether a typedef for a basic type as a baseclass is diagnosed.
*/
typedef int an_int;
class bar : public an_int {}; // { dg-error "" } not an aggregate
|
google | android | eb22 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.robertl/eb22.C | 822 | utf_8 | 6e36a420260fd3259c82d1a6cb14c126 | // { dg-do assemble }
// Ambiguous conversion, three candidates:
// builtin == (int, int), and the two user-defined operators
// Each one requires a user-defined ICS where another uses builtin conversions,
// so none is the best viable function.
class MyInt
{
public:
MyInt(int = 0) {}
operator int() c... |
google | android | ebnull-cast | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.robertl/ebnull-cast.C | 255 | utf_8 | 2169fcc343d8d7c6033fe636d18909af | // { dg-do run }
class null {
null (null const&);
void operator& ();
public:
null () {}
template <typename T>
operator T* () const { return 0; }
} const null;
int main ()
{
int *p = static_cast<int*>(null);
return 0;
}
|
google | android | eb128 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.robertl/eb128.C | 161 | utf_8 | 06b76b4bfa648bedcd960d0535aba50f | // { dg-do assemble }
template<class T>
struct A {
typedef T* iterator; // { dg-error "" } pointer to reference
public:
A(){}
};
void f()
{
A<int&> a;
}
|
google | android | eb83 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.robertl/eb83.C | 268 | utf_8 | 24392840d4084b13ca449e1d760737f6 | // { dg-do run { target native } }
// { dg-options "-fprofile-arcs -ftest-coverage" }
void
test_swap(int& x, int& y) throw()
{
int tmp = x;
x = y;
y = tmp;
}
main()
{
int i = 5;
int j = 7;
test_swap(i, j);
}
/* { dg-final { cleanup-coverage-files } } */
|
google | android | eb73 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.robertl/eb73.C | 301 | utf_8 | cadd13ad50ffcc1ec9077249dc0d84c6 | // { dg-do run }
// { dg-options "-O -Wall" }
// Depletes VM.
#include <iostream>
#include <list>
#include <algorithm>
using namespace std;
int main()
{
int daten [16] = { 1, 4, 4, 6, 1, 2, 2, 3, 6, 6, 6, 5, 7, 5, 4, 4};
list<int> menge;
copy (daten, daten+16, back_inserter(menge));
}
|
google | android | eb88 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.robertl/eb88.C | 172 | utf_8 | baf5eb8554a10760c7a7bf62b952eb28 | // { dg-do run }
// { dg-options "-w" }
// Another magic NULL problem.
#include <stddef.h>
int main()
{
try
{
throw(NULL);
}
catch (...)
{
}
}
|
google | android | eb11 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.robertl/eb11.C | 443 | utf_8 | cefd72ccf9ccca809d4dc7746e56f11f | // { dg-do assemble }
template<int N1, int N2>
struct meta_max {
enum { max = (N1 > N2) ? N1 : N2 };
};
struct X {
enum {
a = 0,
n = 0
};
};
template<class T1, class T2>
struct Y {
enum {
a = T1::a + T2::a,
// NB: if the next line is changed to
// n = (T1::n > T2... |
google | android | eb86 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.robertl/eb86.C | 115 | utf_8 | 451d74d332d1ebd3febbf9f2fdef05d5 | // { dg-do assemble }
template <class T> void foo ();
template <class T>
class Q {
friend void foo<T> ();
};
|
google | android | eb61 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.robertl/eb61.C | 84 | utf_8 | e79679e8d57af97c777b23ef2b290a90 | // { dg-do assemble }
void
action0(float& arg1)
{
long cn0 = 1;
arg1 = cn0;
}
|
google | android | eb106 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.robertl/eb106.C | 385 | utf_8 | 5ef889682d511f0ac101f0885f5a3831 | // { dg-do assemble { target native } }
// { dg-options "-O2 -fPIC " }
struct T
{
const char* f1;
int f2;
};
void f(T*);
int g();
extern char a1[];
inline int m(int a, int b) {return b < a ? 2 : 1;}
void
h()
{
T a[10];
int i(0);
bool c;
{
a[i++].f1 = "asf";
f(a);
i = 0;
}
a[i].f1 = &a1[1];
a[i].f2 = m... |
google | android | eb29 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.robertl/eb29.C | 287 | utf_8 | 2d148cfc1aef7e73c84dde3cfba1ce8c | // { dg-do assemble }
#include <vector>
using namespace std;
enum s { S };
class a
{
vector<s> vs;
friend class b;
};
struct b
{
vector<a> va;
operator vector< vector<s> >()
{
return vector< vector<s> >(va.size());
}
};
|
google | android | eb94 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.robertl/eb94.C | 257 | utf_8 | b91e803cf25865ae0ad3c7c4205383ee | // { dg-do assemble }
class baseClass
{
private:
static int variable;
};
class myClass : public baseClass
{
private:
static int variable; // { dg-error "private" }
};
myClass::variable = 0; //{ dg-error "" } no type
|
google | android | eb74 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.robertl/eb74.C | 383 | utf_8 | be75e16bfbc653f4918a04c9b9ffb7ea | // { dg-do assemble }
class base {
public:
virtual ~base();
};
class foo : public base {
public :
foo (char *cs);
virtual void op (unsigned char dummy = false);
unsigned char m_dummy;
};
void foo :: op ( unsigned char dummy)
{
bool bar;
if (dummy) {
foo IT_tempPhase( 0 )... |
google | android | eb41 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.robertl/eb41.C | 197 | utf_8 | a2554475431f18dfadd63645b06b9130 | // { dg-do run }
#include <iostream>
#include <iterator>
#include <string>
std::ostream_iterator<std::string> oo(std::cout);
int main()
{
*oo = "Hello, ";
++oo;
*oo = "world!\n";
}
|
google | android | eb35 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.robertl/eb35.C | 512 | utf_8 | 022bceee6bb804935953e550cbad5afc | // { dg-do assemble }
class string
{
public:
string();
string(const string& x);
string(const char* t);
~string();
};
void set_status(string message);
class StatusDelay {
private:
string cause;
public:
StatusDelay(const string& c)
{
set_status(cause);
}
~StatusDelay()
{
... |
google | android | eb60 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.robertl/eb60.C | 266 | utf_8 | 9ec1bcc10a422ce1681840b226b2e797 | // { dg-do assemble }
#include <string>
class t {
public:
t(const std::string& s) : s_(s) {}
std::string s_;
static t* t_;
};
t* t::t_;
t* makeT()
{
return new t("test");
return t::t_ ? t::t_ :
t::t_ = new t("test");
}
|
google | android | eb55 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.robertl/eb55.C | 288 | utf_8 | 515d9f8631388b57acb4079b3ad6e1d9 | // { dg-do assemble }
// Since the constructor is in streambuf.h, additional diagnostics are
// produced, which are not really supported in the old-deja framework
#include <sstream>
void
t( char* buf )
{
std::istrstream str = buf; //{ dg-error "" } inaccessible copy constructor
}
|
google | android | eb5 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.robertl/eb5.C | 182 | utf_8 | 587cf27a8a6445ee8c78cc92cf59b65f | // { dg-do assemble }
enum { a, b };
class Bug {
int pri:8;
int flags:15;
public:
void bug() {
flags |= a; // this does not work
}
};
void dummy(Bug x) { x.bug(); }
|
google | android | eb121 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.robertl/eb121.C | 265 | utf_8 | 6875edf27d4ff79c6949fbd17e5b1ed6 | // { dg-do assemble }
class A {
private:
int i1_;
public:
void f(int const i1 = 1); // { dg-message "previous specification" }
};
void
A::f(int const i1 = 1) // { dg-error "default argument given" }
{
i1_ = i1;
}
int
main()
{
A a;
a.f();
return 0;
}
|
google | android | eb70 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.robertl/eb70.C | 298 | utf_8 | 559dc3f40084aebeeb2d90d1fb731ed3 | // { dg-do assemble }
// conversion ops should be treated as coming from the most derived class
// for overload resolution. See [over.match.funcs].
class X {
public:
operator bool() const;
};
class Y : public X {
private:
operator void*() const;
};
int f(Y const& y) {
return bool(y);
}
|
google | android | eb99 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.robertl/eb99.C | 2,271 | utf_8 | af391639c62202c1066f60c310ba25a7 | // { dg-do assemble }
class ref_counted
{
protected:
ref_counted( void ) : _count( 0 ) {}
public:
unsigned int add_ref( void ) { return ++_count; }
unsigned int release( void ) { return --_count; }
unsigned int count( void ) const { return _count; }
p... |
google | android | eb131 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.robertl/eb131.C | 617 | utf_8 | 0fd02afc4315672b70b5fc849d05bb89 | // { dg-do assemble }
// Reported against EGCS snaps 98/06/18.
struct a {
a();
void junk( float );
void junk( double );
void bar( double );
void bar( float );
void foo( void (a::*member)(float) ); // { dg-message "void a::foo|no known conversion" }
};
a::a()
{
foo( &junk ); // { dg-error "match" } junk is a... |
google | android | eb120 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.robertl/eb120.C | 528 | utf_8 | b0b80d381a13416603feedf9611b816d | // { dg-do run }
template<double functionToIntegrate(double)>
double integrate(double a, double b, int numSamplePoints)
{
// PRECONDITION(numSamplePoints > 1);
double delta = (b-a) / (numSamplePoints-1);
double sum = 0.;
for (int i=0; i < numSamplePoints; ++i)
sum += functionToIntegrate(a + i*... |
google | android | eb112 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.robertl/eb112.C | 406 | utf_8 | 37147a8b03ef1cf59825839e29b88142 | // { dg-do assemble }
template <class STRUCT, class MEMBER> inline STRUCT *
setback(MEMBER *bp, MEMBER STRUCT::*offset)
{
// The implementation of this function may be platform dependend
if(!bp) return 0; // NULL pointers remain NULL
union { int i; MEMBER STRUCT::*of; } u; // Switch types. Cast... |
google | android | eb69 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.robertl/eb69.C | 561 | utf_8 | 179ea4ef7ed81c7f389b0af80dec0b2f | // { dg-do assemble }
// Test that g++ complains about referring to a builtin type in a
// mem-initializer.
int r = 0;
struct foo { // { dg-message "note" } candidate
foo(int x) { r = 1; } // { dg-message "note" }
};
struct bar : foo {
typedef int an_int;
bar() : bar::an_int(3) {} // { dg-error "match"... |
google | android | eb75 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.robertl/eb75.C | 575 | utf_8 | 055def38a375aca3237eeade062815d5 | // { dg-do assemble }
int*& foo (int const *& x)
{
return const_cast<int*&> (x);
}
/*
If the references in this example are changed to pointers (change
all `&''s to `*'), no warnings result.
I think this is incorrect according to CD2 5.2.11, para 4:
4 An lvalue of type T1 can be explicitly converted to an lvalue... |
google | android | eb54 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.robertl/eb54.C | 154 | utf_8 | f81c5754161a5ff2ebd2406bece56fd1 | // { dg-do run }
#include <iomanip>
#include <iostream>
#include <cstdlib>
int main()
{
std::cout << std::setbase(3) << std::endl;
std::exit (0);
}
|
google | android | eb133a | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.robertl/eb133a.C | 265 | utf_8 | bc4689e554f4823c5225c057950715a7 | // { dg-do assemble }
// Gives ICE 109
// Reported against EGCS snaps 98/06/28.
int main()
{
try {
}
catch (std::bad_alloc) { // { dg-error "" } parse error
return 1;
}
return 0;
}
|
google | android | eb20 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.robertl/eb20.C | 479 | utf_8 | b8297fbb8ea21dd74224c4f583013d82 | // { dg-do assemble }
// Error: ICE on 2.7.2.3 and EGCS 1.0.0.
template<int N1, int N2>
struct meta_max {
enum { max = (N1 > N2) ? N1 : N2 };
};
struct X {
enum {
a = 0,
n = 0
};
};
template<class T1, class T2, class T3>
struct Y {
enum {
a = T1::a + T2::a + T3::a,
n = m... |
google | android | eb39 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.robertl/eb39.C | 318 | utf_8 | b92d300c6fe701dce20422ebf6b69f31 | // { dg-do assemble }
#include <cctype>
#include <iostream>
#include <sstream>
#include <cstring>
using namespace std;
extern bool foo2 (ostream &out, istream &in);
bool
foo1 (ostream &out, const char *in)
{
string tmp(in, std::strlen(in));
stringbuf sb (tmp);
istream fmt (&sb);
return foo2 (out, fmt);
}
|
google | android | 900210_02 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.bugs/900210_02.C | 3,180 | utf_8 | 339897012384e69ba0bf03042ca72e8f | // { dg-do assemble }
// { dg-options "" }
// g++ 1.36.1 bug 900210_02
// g++ allows integral type values to be assigned to variables of pointer
// types. According to the C++ Reference Manual, this is illegal.
// Cfront 2.0 passes this test.
// keywords: integral types, pointer types, implicit type conversions
//... |
google | android | 900511_03 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.bugs/900511_03.C | 548 | utf_8 | 7c5fa26da82ab98b8a83c64d87bc1527 | // { dg-do assemble }
// g++ 1.37.1 bug 900511_03
// g++ does not properly shadow names of types with names of data members
// in cases where the type names in question are used in the context of
// formal parameters lists for member functions.
// keywords: typedef names, shadowing, scope, formal parameter list
cla... |
google | android | 900403_04 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.bugs/900403_04.C | 278 | utf_8 | 4216a63f8b9a5ea7ffd4163819a4b63e | // { dg-do assemble }
// g++ 1.37.1 bug 900403_04
// The following erroneous code causes g++ to abort.
// keywords: abort, bit-fields, zero length
struct s {
unsigned int foo:0; // { dg-error "" } This is the real line
unsigned int field;
};
int main () { return 0; }
|
google | android | 900213_03 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.bugs/900213_03.C | 615 | utf_8 | 69921538d135ee9fc08350178f124fa7 | // { dg-do assemble }
// g++ 1.36.1 bug 900213_03
// g++ fails to detect an error when the address of a "bound" function is
// assigned to a pointer-to-member-function variable.
// It does however correctly detect a similar errors for data-members.
// keywords: bound function, operator&, member pointers
struct str... |
google | android | 900210_07 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.bugs/900210_07.C | 482 | utf_8 | 25b8398da50b1cee3d0facbcb1a12fa5 | // { dg-do assemble }
// { dg-options "" }
// g++ 1.36.1 bug 900210_07
// g++ allows values of pointer-to-signed types to be assigned to variables
// of pointer-to-unsigned types, and vise versa.
// Cfront 2.0 passes this test.
// keyowrds: pointer types, implicit type conversions
// Special Options: -ansi -pedanti... |
google | android | 900211_01 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.bugs/900211_01.C | 343 | utf_8 | eac9186df3d5a9c4add6a47ab8b7d668 | // { dg-do assemble }
// g++ 1.36.1 bug 900211_01
// g++ issues only warnings for calls to previously undeclared functions,
// however such calls are actually errors.
// Cfront 2.0 passes this test.
// keywords: undeclared, functions
void global_function_0 ()
{
global_function_1 (); /* { dg-error "" } */
}
int... |
google | android | 900220_03 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.bugs/900220_03.C | 1,057 | utf_8 | 581257e0732520f2bf2fdeb02256af41 | // { dg-do run }
// g++ 1.36.1 bug 900220_03
// g++ does not properly disambiguate calls to overloaded functions
// which are nearly identical except that one take a reference to a
// type `T' object and another takes a reference to a type `const T'
// object.
// (Note that the volatile stuff is commented out here bec... |
google | android | 900404_01 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.bugs/900404_01.C | 471 | utf_8 | 9ce300e0f9e6df86bea8c5421165dc2b | // { dg-do assemble }
// g++ 1.37.1 bug 900404_01
// g++ allows string initializers for known-length character arrays to be
// one character longer (counting the terminating null) than the actual
// length of the array to be initialized.
// The C++ Reference Manual (section 8.4.2) expressly prohibits this.
// Cfron... |
google | android | 900428_03 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.bugs/900428_03.C | 837 | utf_8 | 7e515a8df49f2eaf093c9547f48bd446 | // { dg-do assemble }
// g++ 1.37.1 bug 900428_03
// g++ fails to detect cases where a constructor for a derived class invokes
// (either explicitly or implicitly) a private constructor for a base class.
// cfront 2.0 passes this test.
// keywords: inheritance, private, accessability, constructors
struct struct_0 ... |
google | android | 900405_01 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.bugs/900405_01.C | 658 | utf_8 | 4df342af36e75b7594742a38d8d90ee7 | // { dg-do assemble }
// g++ 1.37.1 bug 900405_01
// The C++ Reference Manual says (in section 5.4) "Types may not be defined
// in casts."
// g++ fails to flag errors for cases where an attempt is made to define
// a struct, class, union, or enum type within a cast.
// keywords: casts, type definitions, tagged typ... |
google | android | 900406_01 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.bugs/900406_01.C | 372 | utf_8 | 56b3109f93c4aee9592ddbf3c51a1730 | // { dg-do assemble }
// g++ 1.37.1 bug 900406_01
// The following code causes g++ to segfault.
// cfront 2.0 passes this test.
// keywords: segfault, operator new, array types, array bounds
void function0 ()
{
new int[]; // { dg-error "" } causes segfault
}
void function1 ()
{
new int (*)[]; // { dg-error "... |
google | android | 900121_05 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.bugs/900121_05.C | 615 | utf_8 | 49bf7f97dafc8f72295a1e487dfa4abc | // { dg-do assemble }
// g++ 1.36.1 bug 900121_05
// g++ allows unions to have base types (i.e. to be "derived") and it allows
// other types to have unions as base types. Both cases are illegal.
// g++ curently does not detect such errors.
// Cfront 2.0 passes this test.
// keywords: unions, inheritance
struct ... |
google | android | 900205_04 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.bugs/900205_04.C | 997 | utf_8 | 9d1a5212b2b82e7ca07a48ee3d6b21e3 | // { dg-do assemble }
// g++ 1.36.1 bug 900205_04
// g++ allows a class for which an implicit default X::X() constructor must
// be created (implicitly by the compiler) to be derived from another class
// which does not have its own default X::X() constructor. This is illegal.
// Cfront 2.0 passes this test.
// ke... |
google | android | 900208_02 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.bugs/900208_02.C | 455 | utf_8 | de65ccdcb52c011f5be6425612645ce0 | // { dg-do run }
// g++ 1.36.1 bug 900208_02
// g++ does not allow a static member of a class/struct/union to be
// declared as an array without an explicit upper bound.
// Cfront 2.0 passes this test.
// keywords: static data members, arrays, dimension, array bound
class class0 {
public:
static int class0_data_... |
google | android | 900330_02 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.bugs/900330_02.C | 839 | utf_8 | 949e6a8376866b9fd9eb1b0b672d4c36 | // { dg-do assemble }
// g++ 1.37.1 bug 900330_02
// The C++ Reference Manual says in section 13.1:
// "Two function declarations of the same name refer to the same function
// if they are in the same scope and have identical argument types. A
// function member of a derived class is *not* in the same scope as a fu... |
google | android | 900214_01 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.bugs/900214_01.C | 505 | utf_8 | ca50103d8a74ed79191f5bd9542839e8 | // { dg-do assemble }
// g++ 1.36.1 bug 900214_01
// g++ allows function members of incomplete types to be declared to be
// friends of other types.
// Cfront 2.0 passes this test.
// keywords: friends, incomplete types, function members
struct A; // { dg-error "" } forward declaration
struc... |
google | android | 900519_12 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.bugs/900519_12.C | 275 | utf_8 | ac9a5240763e641aff84b4edf13031ce | // { dg-do assemble }
// g++ 1.37.1 bug 900519_12
// The following erroneous code causes g++ to segfault.
// cfront 2.0 passes this test.
// keywords: segfault, typedef, pointer type, function type
typedef eek void (*)(); // { dg-error "" }
int main () { return 0; }
|
google | android | 900519_06 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.bugs/900519_06.C | 682 | utf_8 | e0be39fecdbfe995ba780091f74dcccb | // { dg-do assemble }
// g++ 1.37.1 bug 900519_06
// g++ allows the type given in an invocation of operator new to be a
// reference type.
// Since pointers to reference types are illegal, the required return type
// from such an invocation (of operator new) is illegal, and thus (it seems)
// the entire call to new ... |
google | android | 900212_01 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.bugs/900212_01.C | 921 | utf_8 | 1caa62a8fd0034d34fdf5a8e206b8c49 | // { dg-do assemble }
// g++ 1.36.1 bug 900212_01
// g++ fails to flag as errors all attempts to add or subtract integer values
// from pointers-to-member values.
// Some cases are detected however.
// Cfront 2.0 passes this test.
// keywords: pointer arithmetic, member pointers
struct struct0 {
};
int struct0::... |
google | android | 900519_04 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.bugs/900519_04.C | 390 | utf_8 | 126ce9f8d7a9dea25b78727cf1afa373 | // { dg-do run }
// g++ 1.37.1 bug 900519_04
// The following legal code causes g++ to segfault.
// cfront 2.0 passes this test.
// keywords: segfault, references, initialization
int cint_obj = 9;
void take_cint_ref (int& arg) { }
int& cint_ref_0 = cint_obj;
int& cint_ref_1 = cint_obj;
void test_0 ()
{
take_c... |
google | android | 900511_02 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.bugs/900511_02.C | 609 | utf_8 | 816e40831e0d42b36ac328d1c140f3b5 | // { dg-do assemble }
// g++ 1.37.1 bug 900511_02
// g++ does not properly shadow names of types with names of data members
// in cases where the type names in question are used in the context of
// formal parameters lists for member functions.
// keywords: typedef names, shadowing, scope, formal parameter list
// ... |
google | android | 900210_09 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.bugs/900210_09.C | 732 | utf_8 | e9b978752f3e6b3a803beab6d95eb453 | // { dg-do assemble }
// g++ 1.36.1 bug 900210_09
// g++ allows pointer to members (both data members and function members)
// to be implicitly converted to void*.
// Section 4.8 of the Cfront 2.0 Reference Manual disallows such implicit
// conversions.
// Cfront 2.0 passes this test.
// keywords: member pointers,... |
google | android | 900519_03 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.bugs/900519_03.C | 1,293 | utf_8 | a645bf290df2e30cf8156ca9495e95cd | // { dg-do assemble }
// g++ 1.37.1 bug 900519_03
// The C++ Reference Manual says (in section 8.4.3) "A reference to a
// volatile T can be initialized with a volatile T or a plain T but not a
// const T. A reference to a const T can be initialized with a const T or
// a plain T or something that can be converted ... |
google | android | 900211_03 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.bugs/900211_03.C | 313 | utf_8 | 6abd890f103a051448d93d9bda74c173 | // { dg-do assemble }
// g++ 1.36.1 bug 900211_03
// The following erroneous code causes g++ to segfault.
// Cfront 2.0 passes this test.
// keywords: segfault, operator new, arrays, undeclared, array bound
void function ()
{
char* new_base = new char[x]; // { dg-error "" }
}
int main () { return 0; }
|
google | android | 900220_02 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.bugs/900220_02.C | 654 | utf_8 | 2a8b87bd0b980874491bd21a47307da3 | // { dg-do run }
// g++ 1.36.1 bug 900220_02
// g++ treats plain `char' and `unsigned char' as different types, however
// it fails to treat `signed char' as being a different type from plain
// `char' as called for by both the ANSI C standard and the C++ reference
// manual.
// keywords: plain char type, signed char ... |
google | android | 900403_01 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.bugs/900403_01.C | 447 | utf_8 | f94f78525b0f62afaadc1a57a6b875f5 | // { dg-do assemble }
// g++ 1.37.1 bug 900403_01
// g++ allows casts to be treated as lvalues (even when the -pedantic
// option is used). Neither the C++ Reference Manual nor cfront 2.0
// allow this. (gcc gives warnings for such usage with -pedantic).
// Cfront 2.0 passes this test.
// keywords: lvalues, casts... |
google | android | 900211_02 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.bugs/900211_02.C | 558 | utf_8 | ff07ad9f2a0d93718ca5f6af614604ed | // { dg-do assemble }
// g++ 1.36.1 bug 900211_02
// g++ allows you to explicitly specify the return type for a type conversion
// operator.
// The Cfront 2.0 Reference Manual (12.3.2) says that this in not allowed.
// Cfront 2.0 passes this test.
// keywords: type conversion operators, return type
struct struct0... |
google | android | 900330_01 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.bugs/900330_01.C | 1,731 | utf_8 | 955efbafb82b241dd6d4ba712693276f | // { dg-do assemble }
// g++ 1.37.1 bug 900330_01
//
// As indicated by the example at the end of the section 3.5.3 of the ANSI
// C standard, when a type qualifier (i.e. "const" or "volatile") is applied
// to an array type, the effect should be as if the element type had been
// qualified with the given qualifier.
/... |
google | android | 900210_10 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.bugs/900210_10.C | 323 | utf_8 | 8784bafd753c84e2a08c4e00f7a6b8d3 | // { 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[], static function members
struct struct0 {
static int operator[] (); /* { dg-error "" } */
};
int main () { return 0;... |
google | android | 900325_01 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.bugs/900325_01.C | 379 | utf_8 | 63f3022e6a8a4aa50e06adc840f4717d | // { dg-do assemble }
// g++ 1.37.1 bug 900325_01
// g++ fails to generate errors for attempts to declare a formal argument to
// be of a void type.
// keywords: formal parameter, void type
typedef void __void;
typedef __void Void;
void function0 (void arg1) { // { dg-error "" } missed
}
void function1 (Void arg1... |
google | android | 900324_06 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.bugs/900324_06.C | 777 | utf_8 | a6ad70bbfac742846a7f5068bc830b87 | // { dg-do run }
// g++ 1.37.1 bug 900324_06
// g++ is unable to use context information (i.e. the required type of the
// expression) to disambiguate a possibly overloaded function name when that
// name is used as either the second or the third operand of a ?: operator.
// It is also unable to use the fact that th... |
google | android | 900401_01 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.bugs/900401_01.C | 306 | utf_8 | 41c2bae6ed7346172ccef788ddf8e9d7 | // { dg-do assemble }
// g++ 1.37.1 bug 900401_01
// The following erroneous code causes g++ to abort.
// Cfront 2.0 passes this test.
// keywords: abort, bit-fields, arrays
typedef unsigned nibble_array[4];
struct whole {
nibble_array nibbles:16; // { dg-error "" }
};
int main () { return 0; }
|
google | android | 900404_07 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.bugs/900404_07.C | 414 | utf_8 | 5390282e50e04854bcdcafbf527ddcca | // { dg-do assemble }
// g++ 1.37.1 bug 900404_07
// It is illegal to use a cast to attempt to convert an object type
// to a non-scalar type (e.g. an array type).
// g++ fails to properly flag as errors such illegal uses of array types.
// keywords: array types, casts, type conversion
typedef int array_type[10];
... |
google | android | 900212_03 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.bugs/900212_03.C | 636 | utf_8 | 8865095e02ecca4e1b9d6cde406c8498 | // { dg-do run }
// g++ 1.36.1 bug 900212_03
// g++ segfaults on any attempt to use the ->* operator.
// Cfront 2.0 passes this test.
// keywords: member pointers, operator->*
struct struct0 {
int data_member;
void function_member ();
};
void struct0::function_member ()
{
}
int i;
int struct0::*dmp;
void (s... |
google | android | 900519_07 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.bugs/900519_07.C | 518 | utf_8 | 268e60b32ad15bd25e180b2b383ae862 | // { dg-do assemble }
// g++ 1.37.1 bug 900519_07
// It is illegal to specify or to use array-of-reference types, yet g++
// allows them to be specified (in typedef statements and in declarations)
// and to be used (in declarations).
// keywords: reference types, array types
int i;
int j;
typedef int& int_ref;
typ... |
google | android | 900321_04 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.bugs/900321_04.C | 321 | utf_8 | b2b96c7ebd782c8f5262719e72124b85 | // { dg-do run }
// g++ 1.37.1 bug 900321_04
// The following code causes g++ to segfault.
// Cfront 2.0 passes this test.
// keywords: segfault, object declaration, pointer, array, incomplete type
struct incomplete;
void function ()
{
struct incomplete (*ptr)[]; // causes segfault
}
int main () { return 0; }... |
google | android | 900205_02 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.bugs/900205_02.C | 571 | utf_8 | f03ee51aea223ecc3e1d9989152fcd9f | // { dg-do assemble }
// g++ 1.36.1 bug 900205_02
// g++ allows constructors to be defined which do not include
// initializations for reference members of their associated classes.
// Cfront 2.0 does not allow this.
// keywords: reference members, constructors, member initialization
int i;
class c0 {
int &int_... |
google | android | 900402_02 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.bugs/900402_02.C | 516 | utf_8 | 7ddab4ab373be7b60b25f124d05590fe | // { dg-do assemble }
// g++ 1.37.1 bug 900402_02
// g++ fails to correctly flag all attempts to construct an array type
// of zero length as errors.
// keywords: arrays, array bound, zero length
typedef int array_type[0]; // { dg-error "zero-size array" }
int array_object_1[0]; // { dg-error "zero-size array" ... |
google | android | 900519_09 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.bugs/900519_09.C | 847 | utf_8 | d00253d70a14469314393d169bec2c0e | // { dg-do assemble }
// g++ 1.37.1 bug 900519_09
// g++ allows the allocation of const objects via operator new even when
// these uses of operator new do not include initializations.
// This is inconsistant within the restrictions placed on the construction
// of class, struct, and union types which have constant ... |
google | android | 900324_05 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.bugs/900324_05.C | 443 | utf_8 | c79225efeb1b5372067c4742a363bd3b | // { dg-do assemble }
// g++ 1.37.1 bug 900324_05
// The following erroneous code causes g++ to segfault.
// Cfront 2.0 passes this test.
// keywords: segfault, arrays, references, assignment operator=
typedef int int_array[];
extern int_array int_array_object;
int_array &left = int_array_object;
int_array &righ... |
google | android | 900227_01 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.bugs/900227_01.C | 1,633 | utf_8 | 2f41c0d40bd81fbd38682c574c358d0a | // { dg-do assemble }
// { dg-options "" }
// g++ 1.37.1 bug 900227_01
// g++ allows pointer type values to be converted to integral types which are
// not actually large enough to hold the converted values.
// Section 3.3.4 of the ANSI C standard says:
// A pointer may be converted to an integral type. The size o... |
google | android | 900511_01 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.bugs/900511_01.C | 744 | utf_8 | b1c7b3e270e0d71b8936cef937980314 | // { dg-do run }
// g++ 1.37.1 bug 900511_01
// g++ fails to properly apply user-defined type conversion operators
// in cases where is it not obvious that the given conversion is
// appropriate for the context (i.e. operator and other operands)
// where the conversion should take place.
// cfront 2.0 passes this te... |
google | android | 900520_05 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.bugs/900520_05.C | 388 | utf_8 | e04f0d66f5d7d54dcb1732090fd6134e | // { dg-do run }
// g++ 1.37.1 bug 900520_05
// The following legal code gets syntax errors from g++.
// keywords: syntax, unimplemented, operator new, initialization, pointer types
struct struct_0 {
};
char *cp;
static struct_0 *sp;
void test0 ()
{
new char * (cp); // { dg-bogus "" }
}
void test1 ()
{
new... |
google | android | 900322_01 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.bugs/900322_01.C | 2,307 | utf_8 | 4304711ea5896ee44a4f67cb72abf33c | // { dg-do assemble }
// g++ 1.37.1 bug 900322_01
// ** Old, obsolete commentary:
// **************************************************************************
// The ANSI C standard, in section 3.1.2.5 (first paragraph) differentiates
// types into three disjoint sets, i.e object types, function types, and
// incomp... |
google | android | 900324_02 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.bugs/900324_02.C | 396 | utf_8 | 938560630b9e5aa2e8c589d73e29459c | // { dg-do assemble }
// g++ 1.37.1 bug 900324_02
// The following erroreous code causes g++ to segfault.
// Cfront 2.0 passes this test.
// keywords: segfault, function pointer, conditional operator ?:
void function_0 (int i) { }
void (*fp)(void);
void function_1 ()
{
fp = 1 ? function_0 : fp; // { dg-error ... |
google | android | 900321_02 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.bugs/900321_02.C | 576 | utf_8 | 2edfa97432f7032677694e75adc57ca8 | // { dg-do run }
// g++ 1.37.1 bug 900321_02
// The following program exits with a nonzero status because the constructor
// is not called 3 times as it should be. This program exits with a zero
// status when compiled with cfront 2.0.
// Cfront 2.0 passes this test.
// keywords: arrays, initialization, default co... |
google | android | 900519_02 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.bugs/900519_02.C | 1,001 | utf_8 | 2b2485c79d9d4d5d6a69c80fd0d49eae | // { dg-do assemble }
// g++ 1.37.1 bug 900519_02
// The C++ Reference Manual says (in section 8.4.3) "A reference to a plain
// T can only be initialized with a plain T" however g++ allows the
// initialization of plain references with qualified objects in many cases.
// keywords: references, initialization, type q... |
google | android | 891229_02 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.bugs/891229_02.C | 592 | utf_8 | c25c74f968219da79d08ed1d49c047e4 | // { dg-do assemble }
// g++ 1.36.1 bug 891229_02
// g++ limits the scope of names which are declared as typedef names within
// another type to that other type.
// This conflicts with the (global) scope given to such names by cfront 2.0.
// Cfront 2.0 passes this test.
// Note 2/15/94: The standard has changed; ... |
google | android | 900324_03 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.bugs/900324_03.C | 481 | utf_8 | 9aa66ee213cd895a0d92bb77ba0b9684 | // { dg-do run }
// g++ 1.37.1 bug 900324_03
// g++ is unable to correctly parse declarations of non-global function-pointer
// variables and/or function-pointer formal parameters.
// Cfront 2.0 passes this test.
// keywords: syntax, function pointers, block local, formal
void (*p0)(); // OK
void function_0 ()... |
google | android | 900221_01 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.bugs/900221_01.C | 475 | utf_8 | 9ca59f87faf9b2f3195d8bc7355cbf0b | // { dg-do assemble }
// g++ 1.36.1 bug 900221_01
// Ref: 3.2
//
// Section 3.2 of the C++ 2.0 Reference Manual says:
//
// "Names of formal arguments for a function are treated as if they
// were declared in the outermost block of that function"
//
// g++ does not enforce this treatment.
// Cfront 2.0 passes this t... |
google | android | 900213_02 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.bugs/900213_02.C | 405 | utf_8 | 90ebc12b87eb0d17161cd8bd67b07971 | // { dg-do assemble }
// g++ 1.36.1 bug 900213_02
// The following erroneous code causes g++ to abort.
// Cfront 2.0 passes this test.
// keywords: abort, member pointers, operator*
struct struct0 {
int data_member;
};
int i;
int struct0::*dmp;
void global_function_0 ()
{
i = *dmp; // { dg-error "invalid u... |
google | android | 900321_01 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.bugs/900321_01.C | 967 | utf_8 | 38428da15106725c9cdeec78d62f9def | // { dg-do assemble }
// g++ 1.37.1 bug 900321_01
// cfront flags ERRORs on each of the lines indicated below. g++ does not
// flag either ERRORs or warnings.
// Although I cannot find where in the current C++ Reference Manual this
// topic is covered, I am sure that these statements should get ERRORs in
// a "stron... |
google | android | 900210_01 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.bugs/900210_01.C | 3,116 | utf_8 | 79390ee11aae50f0ebb8f4959b1d1e53 | // { dg-do assemble }
// g++ 1.36.1 bug 900210_01
// g++ allows pointer type values to be assigned to variables of integal
// types. According to the C++ Reference Manual, this is illegal.
// Cfront 2.0 passes this test.
// keywords: pointer types, integral types, implicit type conversions
int i;
long l;
short s;... |
google | android | 900321_05 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.bugs/900321_05.C | 417 | utf_8 | 1f16211b8272d36ce36562af2f46ab67 | // { dg-do run }
// g++ 1.37.1 bug 900321_05
// The following code is legal as far as the ANSI C standard, GCC, and
// cfront are concerned, however g++ issues errors for the lines indicated.
// Cfront 2.0 passes this test.
// keywords: operator[], pointers, index
char c;
char *cp;
int i;
void function ()
{
c =... |
google | android | 900127_02 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.bugs/900127_02.C | 1,224 | utf_8 | 6a9dc09ed0e32e910ce6ced716d59e33 | // { dg-do assemble }
// g++ 1.36.1 bug 900127_02
// g++ (mostly) keeps separate name spaces for the declarations of data
// objects and functions.
// This means that a single name may be declared as both a data object and
// a function within a given scope.
// This fact allows programmers to write code which is no... |
google | android | 900520_03 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.bugs/900520_03.C | 1,893 | utf_8 | 8c745c14f9e9fb9fa964d31b1fefb542 | // { dg-do assemble }
// g++ 1.37.1 bug 900520_03
// The C++ Reference Manual says (in section 8.2.4):
// When an identifier of array type appears in an expression, except
// as the operand of sizeof or & or used to initialize a reference,
// it is converted into a pointer to the first member of the array.
// One m... |
google | android | 900205_03 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.bugs/900205_03.C | 1,294 | utf_8 | 61e81cdec2f0d5f67a0b0594f7678836 | // { dg-do assemble }
// { dg-options "-Wreturn-type -pedantic-errors" }
// g++ 1.36.1 bug 900205_03
// Section 6.6.3 of the cfront 2.0 Reference Manual says "A return statement
// without an expression can be used only in functions that do not return
// a value, that is, a function with the return value type void...... |
google | android | 900331_02 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.bugs/900331_02.C | 599 | utf_8 | d581b2639f5bf26e22714a3e979dc43c | // { dg-do run }
// g++ 1.37.1 bug 900331_02
// g++ fails to treat conditional expressions which yield composite type
// (i.e. struct type, union type, or class type) lvalues as if they did
// in fact yield lvalues in all cases.
// Cfront 2.0 passes this test.
// keywords: conditional operator?:, lvalues, composite... |
google | android | 900208_04 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.bugs/900208_04.C | 551 | utf_8 | 4fb212343fadaeac90f3fbc8f76a766e | // { dg-do assemble }
// g++ 1.36.1 bug 900208_04
// The Cfront 2.0 reference manual (5.3.3) says "This type must be an
// object type; functions cannot be allocated this way...".
// g++ fails to detect (at compile time) cases where an attempt is made to
// deallocate a function using delete.
// Cfront 2.0 passes t... |
google | android | 900220_01 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.bugs/900220_01.C | 894 | utf_8 | 2d580aa45214c9c5624bc6140cf261b8 | // { dg-do run }
// g++ 1.36.1 bug 900220_01
// Ref: 12.8
// Section 12.8 says:
// "That is, X::operator=() will be generated only if no assignment
// operation is explicitly declared and an object of class X is actually
// assigned an object of class X (or an object of a class derived from X)
// or if the address ... |
google | android | 900208_03 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.bugs/900208_03.C | 500 | utf_8 | 61d8cd21ad4d1060a0881672ce1b0133 | // { dg-do assemble }
// g++ 1.36.1 bug 900208_03
// The Cfront 2.0 reference manual (5.3.3) says "This type must be an
// object type; functions cannot be allocated this way...".
// g++ fails to detect (at compile time) cases where an attempt is made to
// allocate a function using new.
// keywords: operator new, ... |
google | android | 900520_02 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.bugs/900520_02.C | 643 | utf_8 | a5736dbc59be59b038f9329cd74bd79a | // { dg-do assemble }
// g++ 1.37.1 bug 900520_02
// keywords: reference types, initialization, parameter passing
typedef int b_array[3];
typedef int u_array[];
typedef b_array &b_array_ref;
typedef u_array &u_array_ref;
void take_b_array_ref (b_array_ref arg) { } // { dg-message "" } passed to here
extern u_arra... |
google | android | 900331_04 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.bugs/900331_04.C | 730 | utf_8 | 49d0547019a4a915bdd9b4f5f87b134c | // { dg-do run }
// g++ 1.37.1 bug 900331_04
// g++ is unable to correctly parse declarations of formal parameters and
// local objects which have pointer-to-array types or reference-to-array
// types.
// Cfront 2.0 passes this test.
// keywords: syntax, arrays, pointers, references, local, formal
int array[10];
... |
google | android | 900428_02 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.bugs/900428_02.C | 672 | utf_8 | 40d55f0463f2346d367636ae29a2483e | // { dg-do assemble }
// g++ 1.37.1 bug 900428_02
// g++ fails to issue either errors or warnings (even with -pedantic) for
// attempts to perform either pre or post increment or decrement operations
// on variables which have either pointer-to-void types or pointer-to-function
// types.
// cfront 2.0 passes this te... |
google | android | 900519_01 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.bugs/900519_01.C | 390 | utf_8 | d02aeec7eaafc8333c72af9f6e048ff0 | // { dg-do assemble }
// g++ 1.37.1 bug 900519_01
// g++ fails to flag errors for some attempts to declare or define non-member
// type conversion operators.
// cfront 2.0 passes this test.
// keywords: user-defined type conversion operator, non-member
extern operator int (); // { dg-error "" }
extern operator ... |
google | android | 900210_03 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.bugs/900210_03.C | 644 | utf_8 | b33ab90f692509c5ef0e0ac54be52859 | // { dg-do assemble }
// g++ 1.36.1 bug 900210_03
// g++ allows void* type values to be assigned to variables of other
// pointer types. According to the C++ Reference Manual, this is illegal.
// Cfront 2.0 passes this test.
// keywords: void pointers, pointer type conversions, implicit type conversions
void* vp;... |
google | android | 900210_06 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.bugs/900210_06.C | 619 | utf_8 | a8f1ea23e326c034a480ba87a1cbe8b8 | // { dg-do assemble }
// g++ 1.36.1 bug 900210_06
// g++ allows values of pointer-to-const types to be assigned to variables
// of pointer-to-non-const types.
// Cfront 2.0 disallows such assignments.
// g++ also allows values of pointer-to-volatile types to be assigned to
// variables of pointer-to-non-volatile ty... |
google | android | 900514_03 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.bugs/900514_03.C | 2,797 | utf_8 | e5f2bd4a455fde5a4f43b70983e392d8 | // { dg-do assemble }
// g++ 1.37.1 bug 900514_03
// g++ fails to flag ERRORs on the following erroneous code.
// In Section 12.3.2 it says "Defining conversion by both a constructor and
// a conversion function can lead to ambiguities." However in the case below,
// the explicit cast syntax disambiguates the const... |
google | android | 900428_01 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.bugs/900428_01.C | 5,518 | utf_8 | 4254712d86c1247e0bb7a4a557701342 | // { dg-do assemble }
// g++ 1.37.1 bug 900428_01
// g++ fails to issue error messages for cases where an incomplete type
// object must be evaluated if the value of such an evaluation is not
// actually used in the given context.
// In the case where such an object is volatile, it is obvious that this
// could be a... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.