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 | 14687 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.benjamin/14687.C | 854 | utf_8 | d5029d042a715327d7d9c5244b1f6ed8 | // { dg-do run }
// 981203 bkoz
// g++/14687
#include <assert.h>
unsigned int gtest;
// 7.3.3 the using declaration
// p 3
struct belieze {
void f(char);
void g(char);
enum E { e };
union { int x; };
};
struct dominica: belieze {
using belieze::f;
void f(int i) { f('c'); } // calls belieze::f(char)
v... |
google | android | friend01 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.benjamin/friend01.C | 408 | utf_8 | 4f0cb9084aea0b4b4780571fe3c08caa | // { dg-do assemble }
//980610 bkoz
// example 1: buggy
class foo {
public:
class bar;
int func(bar *);
class bar {
int st;
public:
bar(){st=12;}
~bar(){}
friend int foo::func(bar *);
};
foo(){}
~foo(){}
};
int foo::func(bar *obj) {
obj->st++;
return (... |
google | android | p13721 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.benjamin/p13721.C | 243 | utf_8 | 62001cb932153adb89a3d72a63e21329 | // { dg-do assemble }
// prms-id: 13721
class A
{
public :
int a;
};
class B : public A
{
public :
void cmp(int a, int b) {}
B(int a = 0)
{
cmp(A::a, a); //should not give warning
}
};
int main(void)
{
return(1);
}
|
google | android | scope02 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.benjamin/scope02.C | 4,425 | utf_8 | 453a3b212db6e61696c8769142831bbd | // { dg-do assemble }
//980529 bkoz
//3.4.5 Class member access via pointer and non-pointer
// non-nested dtor calls
int counter = 0;
struct X {
int rank;
X(int init = 64) : rank(init) { }
~X() { ++counter; }
typedef X classtype;
};
typedef X globaltype;
#if 0
template <typename T>
struct X_tem {
T rank;
... |
google | android | typedef03 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.benjamin/typedef03.C | 917 | utf_8 | f2929f837162a135c11590ea2c8b94cd | // { dg-do assemble }
//980526 bkoz
// reduced testcase for 980511 brendan qt bug
class QTextStream
{
public:
QTextStream();
virtual ~QTextStream();
enum {
skipws = 0x0001,
left = 0x0002,
right = 0x0004,
internal = 0x0008,
bin = 0x0010,
oct = 0x0020,
dec ... |
google | android | tem02 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.benjamin/tem02.C | 1,428 | utf_8 | d3a1d8c5e1eb5bb34389eea5ab4ba473 | // { dg-do assemble }
//980519 bad error from nathan
//$ egcs -fhonor-std -nostdinc -c redef.C
//redef.C:56: redefinition of default argument for `class _Traits'
template<class _CharT> struct char_traits;
template<class _CharT> struct char_traits { };
template<> struct char_traits<char>;
template<> struct char_traits... |
google | android | bool01 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.benjamin/bool01.C | 1,280 | utf_8 | 056db47cf68f100a3c569e76252caf73 | // { dg-do run }
//980323 bkoz
//test for bools with inclusive ors
#include <assert.h>
#include <limits.h>
void bar ( bool x ) {}
void bars ( short x ) {}
/* 980326 bkoz this is not initialized and so can have indeterminate value. */
#if 0
int orb(){
bool y;
bar ( y );
int blob = ( 27 | int (y) );
return ... |
google | android | p12475 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.benjamin/p12475.C | 324 | utf_8 | 9dbf0024a828cdae173938072b0a60b2 | // { dg-do assemble { target { ! c++11 } } }
// prms-id: 12475
#include <limits.h>
#if LONG_MAX == 2147483647
#define TEST 2147483648
#elif LONG_MAX == 9223372036854775807
#define TEST 9223372036854775808
#else
#error "Unsupported test -- add new constants."
#endif
enum huh { start =-TEST, next }; // { dg-warning ""... |
google | android | 13478 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.benjamin/13478.C | 508 | utf_8 | a89345be22478afb4922d14649cbe8db | // { dg-do assemble }
// 981203 bkoz
// g++/13478
class A {};
class AData {};
typedef void (A::* hand) (void);
struct hand_table {
const int data1;
const hand data2;
};
class Agent : public A {
public:
enum { first = 1, last };
protected:
static const hand_table table_1[];
static const AData table_2... |
google | android | tem06 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.benjamin/tem06.C | 895 | utf_8 | 41b0c9f614d7008ceae61fc6d2fea5ad | // { dg-do run }
// 980945 bkoz
// test for correct operators at link time
/*
/tmp/cca211431.o: In function `void blah<foo<int> >(foo<int> const &)':
/tmp/cca211431.o(.void gnu.linkonce.t.blah<foo<int> >(foo<int> const &)+0x1e): undefined reference to `void x<int>(int const &)'
*/
template<class T>
class foo {
publi... |
google | android | warn04 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.benjamin/warn04.C | 204 | utf_8 | 49fb55f1f6d9a4c4d3fca4caaf91f5b0 | // { dg-do assemble }
// { dg-options "-Wno-non-template-friend" }
// 980903 bkoz
// make sure this option works
template<class T> class task {
friend void next_time(); //shouldn't give a warning
};
|
google | android | 13908 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.benjamin/13908.C | 344 | utf_8 | 7c659bbd81a9ba7b33c3ee689255fcb4 | // { dg-do assemble }
// 981203 bkoz
// g++/13908
class chile
{
public:
protected:
private:
};
typedef void (chile::* pmf) ();
void* foo;
void bar (chile* pobj, pmf pmethod)
{
//-edg: expected member name
//-g++: taking address of bound pointer-to-member expression
foo = (void*) &(pobj->*pmethod); // { dg-e... |
google | android | warn02 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.benjamin/warn02.C | 824 | utf_8 | 2f7759ef314d396ef5d9dbdf33172fa2 | // { dg-do assemble }
// { dg-options "-Wredundant-decls" }
// 980413 bkoz
// from g++/15307, tests for -Wredundant-decls
// for friend functions and functions
extern int foo(const char *);
class A
{
friend int foo(const char *);
int a;
};
class B
{
friend int foo(const char *);
int foo2() {return b;}
... |
google | android | 15756-1 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.benjamin/15756-1.C | 475 | utf_8 | d0f47415efc4de81e9b3a94bb2f2d30b | // { dg-do assemble }
// { dg-options "-Wsign-promo" }
// 981203 bkoz
// g++/15756 test1
enum e_value { first = 0, next = 30 };
struct sanjuan {
sanjuan(int value);
sanjuan(unsigned value);
friend sanjuan operator&(const sanjuan& x, const sanjuan& y);
friend int operator!=(const sanjuan& x, const sanjuan& y... |
google | android | 15054 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.benjamin/15054.C | 180 | utf_8 | cd82f5ef71fe2b5c2d726edde7e3f65c | // { dg-do assemble }
// { dg-options "-Wno-pointer-arith" }
// 981203 bkoz
// g++/15054
// note that -pedantic also turns on this warning
void cuba(void) {
void* p;
p++;
}
|
google | android | scope01 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.benjamin/scope01.C | 1,629 | utf_8 | 47901d5b5ac69dd3bacc041717940f4b | // { dg-do assemble }
// 980604 bkoz
// 3.4.5 Class member access p 4
// nested and non-nested calls, no dtors
struct L {
int ii;
void foo(int a) {++a;}
struct Linner {
int ii_inner;
void foo_inner(int b) {++b;}
};
};
class A : public L {};
class B : public L {};
class C : public A, public B {};
... |
google | android | 15756-2 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.benjamin/15756-2.C | 656 | utf_8 | 1860c693f6bc8ef1270ecab41ecc9551 | // { dg-do assemble }
// { dg-options "-Wsign-promo" }
// 981203 bkoz
// g++/15756 test2
// this test may only be valid for 32bit targets at present
#include <limits.h>
enum e_i {
vali
}
enum_int;
enum e_ui {
#if INT_MAX == 32767
valui = 0xF234
#else
valui = 0xF2345678
#endif
}
enum_uint;
int i;
unsigned i... |
google | android | bool02 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.benjamin/bool02.C | 938 | utf_8 | 9fa48ee5b1d42c38113303ab2eea5d36 | // { dg-do run }
//980324 bkoz
//test for bool and bitwise ands
#include <assert.h>
void bar ( bool x ) {}
void bars ( short x ) {}
#if 0
int andb(){
bool y;
bar ( y );
int blob = ( 27 & int (y) );
return blob; //expect 1 or 0
}
#endif
int andbtrue(){
bool y = true;
bar ( y );
int blob = ( 27 & in... |
google | android | friend02 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.benjamin/friend02.C | 360 | utf_8 | dec5ca9e16504f6b98460424ce0ca6dd | // { dg-do assemble }
//980610 bkoz
// example 2: ok
class bar;
class foo {
public:
int func(bar *);
foo(){}
~foo(){}
};
class bar {
int st;
public:
bar(){st=12;}
~bar(){}
friend int foo::func(bar *);
};
int foo::func(bar *obj) {
obj->st++;
return (obj->st);
}
void test02() {
foo obj_f;
... |
google | android | tem07 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.benjamin/tem07.C | 306 | utf_8 | 7925d70b3542542fe6133d14532c6e4a | // { dg-do run }
template <class T>
class Foo
{
public:
Foo(const T&);
Foo(const T&, const T&);
};
template <class T>
Foo<T>::Foo(const T& t0)
{
}
template <class T>
Foo<T>::Foo(const T& t0, const T& t1)
{
}
template Foo<int>::Foo(const int& t0);
int main (void) {
return 0;
}
|
google | android | 14664-2 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.benjamin/14664-2.C | 189 | utf_8 | f5ab8f5b3569671c9c11f4da5a9921f4 | // { dg-do assemble }
// { dg-options "-fpermissive -w" }
// 981203 bkoz
// g++/14664 + test
char foo[26];
void bar()
{
foo = "0123456789012345678901234"; // { dg-error "array" }
}
|
google | android | 17930 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.benjamin/17930.C | 133 | utf_8 | c0c9d6be703bb9e7d62e19e8fac5fe96 | // { dg-do assemble }
// 981204 bkoz
// g++/17930
char const one[] = "test";
char const two[] = one; // { dg-error "" } // ERROR -
|
google | android | 15822 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.benjamin/15822.C | 452 | utf_8 | 77e9f5b895bcd88e85e22bd235323252 | // { dg-do run }
// 981203 bkoz
// g++/15822
#include <assert.h>
static unsigned int gcount;
struct playahermosa {
playahermosa() { ++gcount; }
playahermosa(const playahermosa &) { ++gcount; }
~playahermosa() { --gcount; }
};
struct playacoco {
playacoco(const playahermosa& = playahermosa()) { } //create ... |
google | android | 15799 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.benjamin/15799.C | 730 | utf_8 | e210211baf5e76cb6e1765969a08ade9 | // { dg-do assemble }
// 981203 bkoz
// g++/15799 test1
/*
15799.cpp: In function `void foo()':
15799.cpp:21: call of overloaded `sanjose({anonymous enum})' is ambiguous
15799.cpp:13: candidates are: sanjose::sanjose(const sanjose &) <near match>
15799.cpp:14: sanjose::sanjose(unsigned int)
*/
type... |
google | android | typeid01 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.benjamin/typeid01.C | 1,294 | utf_8 | dc34add658f20519cb6e238d0aef91c0 | // { dg-do run }
// 980617 bkoz
// typeid for local types
// typeid bool vs int and enum vs int
#include <typeinfo>
#ifdef DEBUG_ASSERT
#include <assert.h>
#endif
// 4: local class in non-main function
void test1 (void) {
bool class_p = false;
class X2 {
private:
unsigned int counter;
public:
X2 (u... |
google | android | tem04 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.benjamin/tem04.C | 4,169 | utf_8 | c9f9e6418b42d7a770764aed11096f68 | // { dg-do assemble }
// 980827 bkoz
// template parameter redeclaration bugs, part two:
// template template params and expanded template non-type parms
// 14.1 Template parameters
// p 13
// The scope of a template-parameter extens from its point of
// declartion until the end of its template. In particular, a
// t... |
google | android | warn03 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.benjamin/warn03.C | 217 | utf_8 | ba6e64338ba5d146b7cd864b0d3d18a3 | // { dg-do assemble }
// { dg-options "-Wredundant-decls" }
// 980420 bkoz
// from g++/15307, tests for -Wredundant-decls for decls
//shouldn't crash
extern unsigned char *foo5[];
extern unsigned char *foo5[];
|
google | android | 15800-1 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.benjamin/15800-1.C | 358 | utf_8 | 12d9215400c84ce6cc6c22f7b63ff67f | // { dg-do assemble }
// 981203 bkoz
// g++/15800 - test
struct panama {
panama();
panama(panama &);
panama& operator=(panama&); // { dg-message "operator=|no known conversion" }
};
extern panama dig();
void foo() {
panama obj;
obj = dig(); // { dg-error "no match" }
// { dg-message "candidate" "can... |
google | android | 15800-2 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.benjamin/15800-2.C | 257 | utf_8 | 3b083807b20b52cabac534de521ca23b | // { dg-do assemble }
// 981203 bkoz
// g++/15800 + test
struct panama {
panama();
panama(panama &);
panama& operator=(panama&);
panama& getref() { return *this; }
};
extern panama dig();
void foo() {
panama obj;
obj = dig().getref();
}
|
google | android | 14139 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.benjamin/14139.C | 518 | utf_8 | d6f0470ac6fca8cc091e4f0cc4733335 | // { dg-do assemble }
// 981203 bkoz
// g++/14309
// test for global functions, mf's, and templatized mf's.
static int fooe_1(void) { return 5; }
static int fooe_2(int x = fooe_1()) { return x; }
struct antigua {
static int& foo_1();
static int foo_2(int& x = antigua::foo_1());
static int foo_3(int x = fooe_2(... |
google | android | 15071 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.benjamin/15071.C | 175 | utf_8 | 789ddec926eff48703b703ecafe1fee5 | // { dg-do run }
// 981203 bkoz
// g++/15071
// gcc invocation fails to link in libstdc++
#include <iostream>
int main() {
std::cout << "hi" << std::endl;
return 0;
}
|
google | android | 17922 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.benjamin/17922.C | 271 | utf_8 | 27a86b8b32a717230fd24343d8516522 | // { dg-do assemble }
// 981204 bkoz
// g++/17922
class base { };
struct derived : public base {
derived (const derived&);
derived (const base&);
};
class tahiti {
public:
static void mf (derived);
};
void foo (const derived aaa) {
tahiti::mf(aaa);
}
|
google | android | tem03 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.benjamin/tem03.C | 4,229 | utf_8 | 4ce04653a9862e9925870650b53d9e30 | // { dg-do assemble }
// 980808-980824 bkoz
// template parameter redeclaration bugs
// 14.1 Template parameters
// p 13
// The scope of a template-parameter extens from its point of
// declartion until the end of its template. In particular, a
// template-parameter can be used in the declaration of subsequent
// tem... |
google | android | tem05 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.benjamin/tem05.C | 1,538 | utf_8 | 1b14068d5cd59524944ff0e4282e9230 | // { dg-do assemble }
// 980924 bkoz
// just a quick test for export, to make sure we are warning for it.
// CHANGE ME when it's supported
// 14 Templates
//p 6
// A namespace-scope declaration or definintion of a non-line function
// template, a non-inline member function template, a non-inline
// member function o... |
google | android | p13417 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.benjamin/p13417.C | 202 | utf_8 | 6a215b61fe279e7c8b45435878b40f63 | // { dg-do assemble }
// { dg-options "-Wno-deprecated" }
// prms-id: 13417
class Foo {
public:
explicit Foo (int){}
};
Foo f(10);
Foo blat() return f(4){} // { dg-error "" } named return value
|
google | android | typedef01 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.benjamin/typedef01.C | 1,132 | utf_8 | 9bcd614aebf8f071c1cc9aef7541ffe7 | // { dg-do assemble }
//980205 bkoz
//7.1.3 the typedef specifier
//p1
typedef int MILES, *KLICKSP;
MILES distance;
extern KLICKSP metricp;
//p2--can redefine to same type
typedef struct s { /* ... */ } s;
typedef int I;
typedef int I;
typedef I I;
//p3--cannot redefine to a different type in a given scope
class ... |
google | android | 16077 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.benjamin/16077.C | 590 | utf_8 | fc8a8e13982233faabec380e8f3dba0b | // { dg-do assemble }
// 981203 bkoz
// g++/16077
// { dg-options "-Wconversion" }
class nicaragua;
struct colombia {
colombia();
colombia(const colombia &);
colombia(const nicaragua &);
colombia &operator= (const colombia&);
};
struct nicaragua {
public:
nicaragua();
nicaragua(const nicaragua&);
... |
google | android | warn01 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.benjamin/warn01.C | 1,706 | utf_8 | 56e49f1c8229edeb65b0d075772cf7fe | // { dg-do assemble }
// { dg-options "-Wall -Weffc++" }
//1 g++/12952 un-named variables in a catch block
//Wall or Wunused should not give warnings here
template <class T>
void f (void) {
try
{
}
catch( int)
{
}
}
//
//2 g++/12923 __attribute__((__unused__)) not working for objects
//W... |
google | android | 00321_01- | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.rfg/00321_01-.C | 377 | utf_8 | 0b17744e945f7e70ed94bc15a1a5772b | // { dg-do assemble }
// Here is a simple one. GCC correctly gives errors for this code when the
// - -pedantic-errors option is used, whereas g++ doesn't.
int (*p1)[3];
int (*p2)[5];
void
test ()
{
p1 == p2; // { dg-error "comparison between distinct pointer types" } comparison.*
p1 > p2; // { dg-error "com... |
google | android | 00324_02- | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.rfg/00324_02-.C | 295 | utf_8 | 6e08af4f3aeb3035fd28db286cc4183e | // { dg-do assemble }
// Another simple one. GCC corerctly gives errors for this code when the
// - -pedantic-errors options is used. g++ doesn't.
void f (int i) { }
void (*fp)(void);
int i;
void
test ()
{
i ? f : fp; // { dg-error "conditional expression|invalid conversion" }
}
|
google | android | const2 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.other/const2.C | 118 | utf_8 | 0d1cb77ade62214d4e6b0d9e0303213f | // { dg-do assemble }
struct S {
static const char* cp = "abc"; // { dg-error "" } initialization of non-const
};
|
google | android | optimize3 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.other/optimize3.C | 697 | utf_8 | b76250225ce6553674e4a57a86b2db26 | // { dg-do run }
// { dg-options "-O2" }
//
// Bug 2936. We ICE'd on tree inlining a function with an anonymous
// union decl.
inline const unsigned char *Foo (const char *string)
{
union
{
const char *p1;
const unsigned char *p2;
};
p1 = 0;
p2 = 0;
p1 = string;
return p2;
}
const unsigned ch... |
google | android | conv9 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.other/conv9.C | 521 | utf_8 | c486ee9f9b6f71a51d4f615e6e470c17 | // { dg-do assemble }
struct
Foo
{
public:
typedef void* (*copier_fn)(void const*);
void foo() const;
void bar(char const*, void const*) const;
private:
struct
Bar
{
char const* key;
void const* item;
};
};
void
Foo::foo() const
{
Bar* cp = 0;
copier_fn copyfn = 0;
bar(cp->key, cp->item)... |
google | android | copy3 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.other/copy3.C | 228 | utf_8 | e64d54ef396a5130a55e404cd94b500b | // { dg-do link }
class bar {
};
class foo {
foo (const foo &f);
public:
foo (bar x) {}
foo () {}
void test (const foo &f) {}
};
int main (void) {
foo f;
bar b;
f.test (b);
} |
google | android | nested4 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.other/nested4.C | 450 | utf_8 | 552b2e0a8d9d578ce36c1e690e691fed | // { dg-do assemble }
//
// bug 372 We ICE'd on the out-of-class definition of a nested class of a
// class template.
struct Bar
{
};
template <class T>
struct Foo
{
struct Baz;
struct Biz;
struct Boz
: Bar
{
};
};
template <class T>
struct Foo<T>::Biz
{
};
template <class T>
struct Foo<T>::Baz
: Bar
{
}; |
google | android | static14 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.other/static14.C | 194 | utf_8 | 09f659f17296ea95013e95aafeac22be | // { dg-do link }
struct basic_string
{
~basic_string();
};
struct Side
{
void name()
{
static basic_string sname;
}
};
int main ()
{
} |
google | android | rtti4 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.other/rtti4.C | 1,294 | utf_8 | 6092a9839bd38aadb991960135272d26 | // { dg-do run }
// { dg-options "-frtti -w" }
// test of rtti of single inheritance and multiple inheritance with
// virtual inheritance
#include <typeinfo>
extern "C" {
int printf(const char *, ...);
void exit(int);
}
class X {
public:
int xi;
virtual int f() {};
};
class Y : public virtual X {
short... |
google | android | stmtexpr1 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.other/stmtexpr1.C | 170 | utf_8 | 01e666c7606315a2bef1f5933007d6dc | // { dg-do assemble }
// { dg-options "-O" }
#include <ctype.h>
bool f( char c )
{
return tolower( c );
} |
google | android | overload11 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.other/overload11.C | 4,206 | utf_8 | c7289e4ba608fd75d8b0c7dd00757a57 | // { dg-do assemble }
// [over.match] 13.3 tells us where overload resolution occurs.
// [over.match.call] 13.3.1.1 says that in
// (...( postfix-expression )...) (expression-list)
// the postfix-expression must be the name of a function (amongst some other
// choices). This means comma and conditional exprs cannot be... |
google | android | array9 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.other/array9.C | 97 | utf_8 | 87ec86cd5f9b8c9a9c9b300876e3dccb | // { dg-do assemble }
template <class T> class A {
T *d;
public: void f() { (T[10])d; }
};
|
google | android | enum3 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.other/enum3.C | 295 | utf_8 | 703ef9888858691fda401137ea6e0340 | // { dg-do assemble }
// Bug 338 and DR 128. Allow static cast to convert between enums.
enum E1 {e1};
enum E2 {e2};
E2 Foo (E1 e)
{
return static_cast <E2> (e);
} |
google | android | null2 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.other/null2.C | 277 | utf_8 | 3d711ec70ea8da8349b2ae221992e597 | // { dg-do run }
extern "C" void abort ();
const char * const foo = ""; // foo is not NULL
int main() {
if ((foo == 0) ? 0 : foo) // so this should evaluate to `foo'
return 0;
else
abort();
} |
google | android | delete3 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.other/delete3.C | 590 | utf_8 | 49bad56c5760d85acb515a9a73eb18b2 | // { dg-do run }
#include <new>
int i;
extern "C" int printf (const char *, ...);
template <class T, class U>
struct map {
~map ();
};
template <class T, class U>
map<T, U>::~map ()
{}
struct SomeClass { };
void* operator new(std::size_t numBytes, SomeClass&, const std::nothrow_t&) throw()
{
return operator... |
google | android | crash9 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.other/crash9.C | 141 | utf_8 | 894ac4875d2973910281036a8c447ce4 | // { dg-do assemble }
struct A { };
struct B : public A
{
int A;
};
struct C : public B { }; |
google | android | linkage3 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.other/linkage3.C | 201 | utf_8 | b822d2c88362af7f0d14e2ef2c0e5a40 | // { dg-do assemble }
extern "C" void f (); // { dg-message "" } previous declaration
static void f () {} // { dg-error "" } extern redeclared static |
google | android | anon5 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.other/anon5.C | 313 | utf_8 | aad0443f7c41b4a122886b6f70c3ee81 | // { dg-do assemble }
// Bug 649. A cv qualified anonymous union would cause confusion.
struct X
{
int fn () const
{
return member;
}
const union
{
int member;
};
}; |
google | android | sizeof1 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.other/sizeof1.C | 204 | utf_8 | a84ac2bbca6e4a347ff10c74435b64dc | // { dg-do assemble }
struct X {
int f ();
int f (int);
};
void f(int i)
{
i = sizeof(X::f); // { dg-error "" } cannot take sizeof a member function
} |
google | android | builtins1 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.other/builtins1.C | 347 | utf_8 | 61fb12d3b094aee63b1654fa642f29ad | // { dg-do run }
// { dg-options "-O2" }
// Test whether this builtin minimally works in G++.
// Origin: Kaveh Ghazi Jan 16, 2001
//
namespace std
{
extern "C" void abort (void);
}
int main ()
{
using namespace std;
if (::__builtin_strlen ("hello") != 5)
abort ();
return 0;
} |
google | android | using1 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.other/using1.C | 402 | utf_8 | f7dcde0b7f14b1ac8a3ebdb12af7c520 | // { dg-do assemble }
class D2;
class B {
private:
int a; // { dg-error "" } B::a is private
protected:
int b;
friend class D2;
};
class D : public B { // { dg-error "" } within this context
public:
using B::a;
using B::b;
};
class D2 : public B {
public:
using B::a;
using B::b; // { dg-message "" } ... |
google | android | vbase5 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.other/vbase5.C | 2,928 | utf_8 | b15a88f072398bb5359ad5a15e6c576c | // { dg-do run }
// Bug 1701. building a vbase path was not using the shortest number of
// vbases. Normally that's just a pessimization, unfortunately during
// constructoring it leads to uninitialized reads.
extern "C" int printf (...);
int fail = 0;
/*{{{ struct Base*/
struct Base
{
unsigned m;
static Base *ad... |
google | android | dll-3 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.other/dll-3.C | 371 | utf_8 | 8b98f2004a966104a390f6cc5bf87729 | // { dg-do assemble { target arm-*-*pe } }
// { dg-options "-mno-nop-fun-dllimport" }
// set compiler_result "__imp_f1.*\.section${spaces}.drectve\n\[^\n\]*-export:f2"
// set not_compiler_result "__imp_f2"
class aClass
{
public:
__declspec(dllimport) int f1();
__declspec(dllexport) int f2();
};
__declspec(... |
google | android | ambig2 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.other/ambig2.C | 674 | utf_8 | 2799c1248a840cb14758affa4c24408d | // { dg-do assemble }
// We should spot all ambiguities
struct A {int m;};
struct B : A { int m; };
struct C : A { int m; };
struct D0 : virtual B, virtual C { int m; };
struct D1 : virtual B, C { int m; };
struct D2 : B, virtual C { int m; };
struct D3 : B, C { int m; };
void fn(D0 *d0, D1 *d1, D2 *d2, D3 *d3)
{
A ... |
google | android | static15 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.other/static15.C | 201 | utf_8 | 806912cb7bd438f1b7cb7b33253780dd | // { dg-do run }
// Special g++ Option: -fdata-sections
void f()
{
static int ctors[3] = { 0, 0, 0 };
ctors[2] = 7;
}
int main ()
{
f ();
} |
google | android | 900403_04 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.other/900403_04.C | 264 | utf_8 | 8f92a8912de7394d42ee9868868d7e1f | // { dg-do assemble }
// GROUPS passed abort
// 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 "" } causes abort
unsigned int field;
};
|
google | android | null3 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.other/null3.C | 103 | utf_8 | c4fe06b3d2844a1f22543425deee09d4 | // { dg-do assemble }
void x()
{
int* p = 1==0; // { dg-warning "converting 'false' to pointer" }
}
|
google | android | crash36 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.other/crash36.C | 1,072 | utf_8 | d0032889a1a88a1e855cd15715dd4d70 | // { dg-do assemble }
// Bug 573. We ICE'd verifying operator new and operator delete conformed
// to the standard's expectation.
void *operator new (__SIZE_TYPE__); // ok
void operator new (__SIZE_TYPE__); // { dg-error "" } must return void *
void *operator new (); // { dg-error "" } must take size_t
v... |
google | android | nested2 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.other/nested2.C | 255 | utf_8 | aeef223a893d7a87dce9b388f1cd200f | // { dg-do assemble }
struct M1 {
struct I {};
};
struct M2 {
struct I {};
struct J : virtual public M2::I,
virtual public M1::I {};
}; |
google | android | anon8 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.other/anon8.C | 166 | utf_8 | 2ffce2c938097596af2012ee18265f3f | // { dg-do assemble }
struct B
{
int a;
B & operator= (const B &);
};
struct A
{
union {
int a;
};
B b;
};
A x;
void foo (const A &y)
{
x = y;
}
|
google | android | overload3 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.other/overload3.C | 171 | utf_8 | 14c85fe3998040c710174b388b703406 | // { dg-do link }
void f(const int *);
void f(int *) {}
void f2(const volatile int *);
void f2(volatile int *) {}
int i;
int main()
{
f(&i);
f2(&i);
}
|
google | android | lookup19 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.other/lookup19.C | 632 | utf_8 | f8f0ae352cbb51ceb3ac0b70b2e7a295 | // { dg-do assemble }
// Test for proper handling of type lookup for conversion operator names.
// Test 1: Only at file scope
typedef int B;
struct A
{
int B;
operator B *(); // { dg-error "" }
};
A::operator B * () // { dg-error "" }
{
return 0;
}
// Test 2: Only at class scope
struct C
{
typedef int D;
... |
google | android | typeck1 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.other/typeck1.C | 465 | utf_8 | b1ba7baf6c438a6770941c4a434853d7 | // { dg-do assemble }
extern int a[][]; // { dg-error "" } invalid multidimensional array
extern int b[7][]; // { dg-error "" } invalid multidimensional array
extern int c[][7]; // OK
extern int (*i)[]; // { dg-message "" } previous declaration
extern int (*i)[7]; // { dg-error "" } conflicting types for `i'
e... |
google | android | cast1 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.other/cast1.C | 229 | utf_8 | 3e481321ce6593bc8e2a10365bdd175a | // { dg-do assemble }
struct S0 { };
struct S1 : virtual public S0 { };
struct S2 : virtual public S0 { };
struct S3 : public S1, public S2, virtual public S0
{
};
void f(const S0*) {}
void g()
{
f(static_cast<S3*>(0));
}
|
google | android | init6 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.other/init6.C | 231 | utf_8 | ef17244e8beb00b8e2b159085fa4524c | // { dg-do run }
// Test for default-initialization of POD-structs in functional cast notation.
struct foo { int a[10]; };
int main()
{
foo f = foo();
int r = 0;
for (int i = 0; i < 10; ++i)
r |= f.a[i];
return r;
}
|
google | android | static11 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.other/static11.C | 295 | utf_8 | 64a40bc5f69b830a25453fd37ea10cd1 | // { dg-do assemble }
enum ReservedName {
rIGNORE,
rINCLUDE
};
void maybeStatusKeyword()
{
static const ReservedName statusKeywords[] = { rINCLUDE, rIGNORE };
for (int i = 0; i < 2; i++) {
ReservedName r = statusKeywords[i];
}
} |
google | android | parse1 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.other/parse1.C | 129 | utf_8 | 58adafdc7ab2ab6ac2577722d3d861ba | // { dg-do assemble }
// Test that we save declspecs before a class defn properly.
static volatile union {
void f() { }
} u;
|
google | android | defarg4 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.other/defarg4.C | 258 | utf_8 | 710632e062afe5e9c781e28d1840cdbf | // { dg-do assemble }
class complex
{
public:
complex();
};
struct MLC33
{
MLC33( const complex& = complex() );
};
void EmptyClone()
{
MLC33();
}
void makeM33()
{
MLC33();
}
void Clone()
{
MLC33();
} |
google | android | access6 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.other/access6.C | 249 | utf_8 | f110d7b225f989a476f79c155a5e5d16 | // { dg-do assemble }
template <int I>
struct S {
void g();
};
class C {
static const int i = 3; // { dg-bogus "" } private
public:
S<C::i>* f(); // { dg-bogus "" } redeclared
};
S<C::i>* C::f() { // { dg-bogus "" } private
return 0;
}
|
google | android | crash35 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.other/crash35.C | 122 | utf_8 | ba85d7fd72304bcf88631d504f0844f1 | // { dg-do assemble }
void foo()
{
if [ // { dg-error "" } parse error
} |
google | android | inline12 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.other/inline12.C | 7,792 | utf_8 | b345c4f1fbc76ff8eea95ef0d960c978 | // { dg-do assemble }
// { dg-options "-O2 -g" }
// (Should preferrably cycle through options.)
// See <URL:http://gcc.gnu.org/ml/gcc-patches/2000-06/msg00310.html>
typedef unsigned int udword;
extern "C" {
void __assert (const char *, int, const char *);
}
class ShZzy;
class ShBe;
class Sh
{
public:
class Xy;
... |
google | android | virtual9 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.other/virtual9.C | 465 | utf_8 | cca0c5a42a9d8567da46895f512d7620 | // { dg-do run }
// Source: Neil Booth, from PR #111.
class A
{
public :
int i;
};
class B : virtual public A
{
};
class C : virtual public A
{
};
class D : public B, public C
{
public :
int f(void);
int g(void);
};
int D::f(void)
{
return B::i;
}
int D::g(void)
{
return this->B::i;
}
D... |
google | android | linkage5 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.other/linkage5.C | 112 | utf_8 | 8f5f0bc1ea8aec63ad7e64ec0fb5a60d | // { dg-do assemble }
static int f ();
int f ();
static int f (); |
google | android | debug3 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.other/debug3.C | 208 | utf_8 | dcb71e937d0db05ef4cdd26c5e394656 | // { dg-do assemble }
// { dg-options "-O2" }
struct S
{
~S();
};
inline void f()
{
static S s;
}
typedef void (*fn_t)();
fn_t g()
{
return &f;
} |
google | android | defarg6 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.other/defarg6.C | 194 | utf_8 | 2bf46981883d131190ab94087d53bafe | // { dg-do assemble }
#include <vector>
#include <fstream>
class STACK {
public:
std::vector<int> data;
STACK() : data()
{ }
}; |
google | android | inline18 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.other/inline18.C | 169 | utf_8 | 69da7d680ad5e7376411f896aed134fa | // { dg-do assemble }
// { dg-options "-O3" }
static void foo (int a)
{
a = a;
}
static void bar (void)
{
foo (-1);
} |
google | android | union4 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.other/union4.C | 415 | utf_8 | e3acc80ebcbe5b254d3b0f851c3cfc52 | // { dg-do assemble }
// { dg-options "" }
union A
{
int i;
int j;
A () : i (3), j (2) {} // { dg-error "" } multiple initializations
};
union B
{
int i;
union {
int j;
};
B () : i (3), j (2) {} // { dg-error "" } multiple initializations
};
union C
{
union {
struct {
int i;
int j;
... |
google | android | crash25 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.other/crash25.C | 500 | utf_8 | fb4a8732b3ed06ff7a577ed5a17dbf8d | // { dg-do assemble }
// { dg-options "-fshow-column" }
class X { // { dg-error "1:new types may not be defined in a return type" "new types" }
// { dg-message "1:\\(perhaps a semicolon is missing after the definition of 'X'\\)" "note" { target *-*-* } 5 }
public:
X();
virtual ~X();
}
X::x() // { dg-error "6:no 'X... |
google | android | delete8 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.other/delete8.C | 515 | utf_8 | 84bdff781f1a6fd221ea3dfef103b8d4 | // { dg-do run }
#include <stdlib.h>
struct S {
~S ();
};
bool flag;
S* s1;
S* s2;
void* operator new (size_t s)
{
return malloc (s);
}
void operator delete (void* p)
{
if (flag && p != s2)
abort ();
}
S::~S () {
if (this != s2)
abort ();
s1 = 0;
}
int main () {
s2 = new S;
s1 = s2;
// Turn on... |
google | android | realloc | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.other/realloc.C | 153 | utf_8 | 2f2163de7ae71b96b78dd69929d4f9eb | // { dg-do assemble }
extern "C" void realloc();
class bug {
public:
void realloc(int foo,int bar);
};
void f() {
bug c;
c.realloc(50,50);
}
|
google | android | lineno3 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.other/lineno3.C | 235 | utf_8 | 5e52821ca49563fbc530d8e6757296ea | // { dg-do assemble }
// Bug: g++ gets confused by the #line directive within a method.
struct S
{
void f ()
{
int i;
int j;
}
}; |
google | android | decl6 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.other/decl6.C | 1,245 | utf_8 | f1bafdb743032a2162ea7c270025c1dd | // { dg-do assemble }
//
int j();
struct B {};
struct A
{
friend explicit int j(); // { dg-error "" } only ctor decls can be explicit
friend explicit B::B (); // { dg-error "" } only ctor decls can be explicit
int f(const); // { dg-error "" } ansi forbids no type
const k; ... |
google | android | cast4 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.other/cast4.C | 1,483 | utf_8 | 2b44765fa9d8a7b3098dacd72b224861 | // { dg-do assemble }
struct A {operator char * () { return 0;} };
struct B {operator char * () const { return 0;} };
struct C {operator char const * () { return 0;} };
struct D {operator char const * () const { return 0;} };
void f0 ()
{
A a = A ();
B b = B ();
C c = C ();
D d = D ();
static_cast <char *... |
google | android | bitfld2 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.other/bitfld2.C | 199 | utf_8 | 6c144611ffdf0e5ed4ad302ac9a49191 | // { dg-do assemble }
// { dg-options "-funsigned-bitfields" }
typedef int i[4];
struct S {
i j:12; // { dg-error "" } array type as bitfield
}; |
google | android | syntax2 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.other/syntax2.C | 308 | utf_8 | fef6c903a3c6e37acec0c8b57da07155 | // { dg-do assemble }
// { dg-options "-fsyntax-only" }
struct B
{
double d;
virtual void f ();
};
struct C: virtual public B
{
char c;
};
struct D: virtual public B
{
int i;
virtual void f ();
};
struct E : public C, public D
{
};
E e; |
google | android | crash28 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.other/crash28.C | 565 | utf_8 | afe695f4e5576851de999405102a96dd | // { dg-do assemble }
namespace N
{
class X;
template <class T>
class Y
{
public:
inline Y () {}
inline operator const Y<X> & () const
{
return *reinterpret_cast<const Y<X> *>(this);
}
};
}
class bar
{
public:
inline bar () {}
inline bar (const ::N::Y< ::N::X>& a);
};
class foo
{
... |
google | android | crash1 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.other/crash1.C | 159 | utf_8 | cb311fca6afff769f4122785b119455c | // { dg-do assemble }
class A
{
enum B { ONE, TWO, THREE }; // { dg-error "" } private
};
class A::B; // { dg-error "" } A::B is not a class type, context
|
google | android | pmf5 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.other/pmf5.C | 599 | utf_8 | d2bcb17f853c43ef64a4867c0150e323 | // { dg-do run }
// Bug: g++ expanded b->member() multiple times, causing the optimizer to
// decide that things weren't related and optimize 'die' into an infinite
// loop.
struct A {
virtual ~A() { }
void f (bool) { }
};
typedef void (A::*pmf_void)();
typedef void (A::*pmf_bool)(bool);
struct B {
~B() {}
... |
google | android | redecl4 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.other/redecl4.C | 174 | utf_8 | 6be0129988c7c99cd612850873cfb90b | // { dg-do assemble }
int main() {
struct A {
void f(); // { dg-error "with" } already declared
void f(); // { dg-error "overloaded" } already declared
};
}
|
google | android | cast3 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.other/cast3.C | 1,456 | utf_8 | f1cef821ea3ed4921f67bfc6512231f6 | // { dg-do assemble }
// static_cast should not cast _away_ constness ([expr.static.cast]/6),
// but nothing bans _adding_ constness. [expr.static.cast]/10 states that a
// pointer of type cv void can be cast to pointer to object type.
struct X;
struct Y {};
struct Z : Y {};
void fn (void *p, void const *cp, Y *yp, Y ... |
google | android | shadow1 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.other/shadow1.C | 210 | utf_8 | 1f1e919597a50858bc10855c813640fc | // { dg-do assemble }
// Bug: g++ thinks that the i in g() shadows the parm from f()
void f (int i)
{
struct A {
void g () {
int i;
}
};
} |
google | android | for2 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.other/for2.C | 353 | utf_8 | 542e3d0c6c6213214631bbea885d8ce6 | // { dg-do assemble }
// Bug 306
// binding a reference in for scope creates nameless objects. Make sure
// we don't try and inject them into scope, for ARM compatibility.
void foo ()
{
for (const int &thing = 0;;)
;
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.