// 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()
{
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 {
};
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