@@ -41,6 +41,8 @@ else #standalone test
41
41
fi
42
42
CC=${CC:- g++}
43
43
44
+ touch poly.cd
45
+
44
46
cat > should-fail.cc << EOF
45
47
#include <ref.h>
46
48
#include "classdesc_epilogue.h"
@@ -55,10 +57,10 @@ int main()
55
57
}
56
58
EOF
57
59
58
- g++ -DOP=" ==" -DTR1 -I$here should-fail.cc & > /dev/null
60
+ g++ -DOP=" ==" -DTR1 -I$here -I. should-fail.cc & > /dev/null
59
61
if test $? -eq 0; then fail; fi
60
62
61
- g++ -DOP=" !=" -DTR1 -I$here should-fail.cc & > /dev/null
63
+ g++ -DOP=" !=" -DTR1 -I$here -I. should-fail.cc & > /dev/null
62
64
if test $? -eq 0; then fail; fi
63
65
64
66
cat > should-fail.cc << EOF
@@ -77,10 +79,10 @@ int main()
77
79
}
78
80
EOF
79
81
80
- g++ -DOP=" ==" -DTR1 -I$here should-fail.cc
82
+ g++ -DOP=" ==" -DTR1 -I$here -I. should-fail.cc
81
83
if test $? -eq 0; then fail; fi
82
84
83
- g++ -DOP=" !=" -DTR1 -I$here should-fail.cc
85
+ g++ -DOP=" !=" -DTR1 -I$here -I. should-fail.cc
84
86
if test $? -eq 0; then fail; fi
85
87
86
88
cat > should-succeed.cc << EOF
@@ -109,7 +111,7 @@ int main()
109
111
}
110
112
EOF
111
113
112
- g++ -DTR1 -I$here -o a.out should-succeed.cc
114
+ g++ -DTR1 -I$here -I. -o a.out should-succeed.cc
113
115
if test $? -ne 0; then fail; fi
114
116
115
117
./a.out
0 commit comments