Commit a32c71a5 by Jason Merrill

new

From-SVN: r26971
parent c1aa4de7
// Test that attributes weak and alias coexist.
extern "C" {
void f () __attribute__((weak, alias ("_f")));
void _f () { }
}
int main ()
{
f ();
}
typedef __SIZE_TYPE__ size_t;
template <class T>
struct A
{
int size;
A ()
{
T *p;
p = new T[size];
int foo;
foo = 5 * size;
};
};
struct B
{
virtual ~B() { }
void operator delete [] (void *ptr, size_t size) { }
};
int main ()
{
A<B> *p = new A<B>;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment