Commit a28e148a by Jason Merrill

up

From-SVN: r23341
parent c8298f61
......@@ -2,11 +2,14 @@
// Bug: g++ emits template instances when it shouldn't.
// Special g++ Options: -g -fexternal-templates
// We mark this XFAIL for the 'collect2: ld returned 1 exit status' message.
// excess errors test - XFAIL *-*-*
#pragma implementation "irrelevant_file"
#line 1 "template18.h"
#pragma interface
template <class T> inline T min (T a, T b) { return a<b?a:b; }
#line 12 "template18.C"
#line 13 "template18.C"
main()
{
......
......@@ -4,7 +4,7 @@
void bar(struct s1 { } a) { (void)a; } // ERROR -
struct s2*fooey() // ERROR - XFAIL *-*-*
struct s2*fooey()
{
try {
static_cast<struct s3 { } *>(0); // ERROR -
......
// Special g++ Options:
void Foo () {}
class B {
......
......@@ -5,8 +5,8 @@ struct foo {
};
void bar(foo a) {
delete a; // should be accepted - XFAIL *-*-*
delete[] a; // should be accepted - XFAIL *-*-*
delete a; // should be accepted
delete[] a; // should be accepted
char b[1];
delete b; // ERROR - expecting pointer type
delete[] b; // ERROR - expecting pointer type
......
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